Opened 11 years ago

Closed 11 years ago

#2293 closed Bug (No Bug)

_GDIPlus_GraphicsDrawImage crashes if we dispose the bitmap.

Reported by: anonymous Owned by:
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:


$hGUI = GUICreate("GDI+")

$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)
$hbitmap1 = _GDIPlus_BitmapCreateFromGraphics(100, 100, $hGraphic)

ConsoleWrite('the crach will came now'&@CRLF)
_GDIPlus_GraphicsDrawImage($hGraphic, $hbitmap1, 0, 0)
ConsoleWrite('If you see this message, it s ok'&@CRLF)

Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by trancexx

  • Resolution set to No Bug
  • Status changed from new to closed

So you are disposing image object and then use pointer to released object to draw. Then you report bug because of the crash you get.
...I'm sorry for you waiting 4 days for developer (OMG!) response and for AutoIt not having one person with enough knowledge and capability to close this report earlier. Clearly we are doing something wrong.
I'm also sure that some time from now you will say for yourself: "Oh that was embarrassing, shame on me."

Btw, Your code is unrunnable.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.