Menu

PtrInt

2019-01-29
2024-10-07
  • Uffe Kousgaard

    Uffe Kousgaard - 2019-01-29

    PtrInt is used two places in dbf.pas for typecasting to a pointer, but in dbf_common.pas it is defined as LongInt. I have changed it (at least locally) to

    {$ifdef Delphi_XE}
    PtrInt = NativeInt;
    {$else}
    PtrInt = Longint;
    {$endif}

    It looks like it fixes the bug here, but has such a bug really been there for a long time?
    Any comments?

     
  • Marco van de Voort

    In the lazarus version this was fixed long ago

     
  • Giuseppe Costanzo

    I've encountered a similar issue that I've detailed here. I think your suggested fix should work.

     
  • Marco van de Voort

    See answer in the thread referenced above.

     
  • Uffe Kousgaard

    Uffe Kousgaard - 2019-08-07

    Is it possible to actually fix it in this non-lazarus version ? So future users can download a version, where it has been changed.

     
  • Uffe Kousgaard

    Uffe Kousgaard - 2022-07-21

    PING. Anybody with rights to make edits, who care to fix this? I have just tested and my application still breaks in the same place as 3 years ago, unless I make the edit listed in my first post.

     
    • Paul Baker

      Paul Baker - 2022-07-27

      I had this in the back of my mind since you "pinged". I coincidentally just committed r820 for a different reason, which is similar. Does it take care of your issue?

       
      👍
      1
  • Uffe Kousgaard

    Uffe Kousgaard - 2022-07-28

    Yes, it does, thank you.
    It is in its essence the same fix.
    I also notice runtime packages in 10.4 carry the name Tokyo. It should be Sydney.

     
    • Paul Baker

      Paul Baker - 2023-03-14

      Can you be more specific? I see a tdbf\packages\Delphi104 folder. I don't know where you see "Tokyo".

       
  • Uffe Kousgaard

    Uffe Kousgaard - 2023-03-19

    Inside \packages\delphi104\tdbf.dpk file.

     
    • Paul Baker

      Paul Baker - 2023-03-20

      It is correct ({$DESCRIPTION 'TDbf for Delphi 10.4 Sydney'}) in revision 843.

       

      Last edit: Paul Baker 2023-03-20
  • Uffe Kousgaard

    Uffe Kousgaard - 2023-03-20

    If I download a snapshot, it still contains "Tokyo" for file \packages\Delphi104\tdbf.dpk.
    It is only \packages\Delphi104\dcltdbf.dpk, which has the "Sydney" text.

     
    • Paul Baker

      Paul Baker - 2023-03-21

      What exactly were you steps for "downloading a snapshot"? I think you're looking at old code.

       
  • Uffe Kousgaard

    Uffe Kousgaard - 2023-03-21

    https://sourceforge.net/projects/tdbf/
    Click "code"
    Click "download snapshot"
    That gives me a zip file: tdbf-code-r843-trunk.zip
    Inside that zip file the tdbf.dpk for delphi 10.4 is from 24-8-2020
    dbf.pas is from 3-3-2023

     
    • Paul Baker

      Paul Baker - 2023-03-21

      For some reason, I cannot see earlier comments in this discussion, so I don't know where I made the mistake, but I do now see what you are referring to.

      Does r845 fix it for you?

       
  • Uffe Kousgaard

    Uffe Kousgaard - 2023-03-21

    Yes, it is fixed now.

     

Log in to post a comment.

MongoDB Logo MongoDB