Results 1 to 2 of 2

Thread: Bug in D2005 version of Windows.pas

  1. #1

    Bug in D2005 version of Windows.pas

    Just a heads up for anyone using GDI functions in D2005.

    I found a bug in the D2005 version of Windows.pas last night when recompiling my IRC client (last time it was compiled was in Delphi 5 or 6 I think). The tagBITMAP record is declared as a packed record, which when passed to GetObject() causes that function to fail because the record is too short. Remove the packed directive and all is good.

    For more info see http://qc.borland.com issue #11282.

  2. #2

    Bug in D2005 version of Windows.pas

    That's an interesting one.
    I had a discussion with Danny Thorpe in September last year, about packed records where he assured me that when when passing any structure from Delphi to an external API, it should *always* be marked packed.

    So now there seems to be exceptions to that rule.

    Anyways, thanks for the heads up.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •