04-05-2013, 07:25 PM
Still leaks bitmaps. After certain number of using this function, Windows will stop working normally.
hb=CopyImage(hb 0 width height LR_COPYDELETEORG)
Management of bitmap handles used with static controls is quite difficult. Try to replace last 2 lines to StaticImageControlSetBitmap. It is in Archive.qml and here:
How to get bitmap of a WebCam capture, and display in dialog
StaticImageControlSetBitmap hWnd hb
DeleteObject hb
hb=CopyImage(hb 0 width height LR_COPYDELETEORG)
Management of bitmap handles used with static controls is quite difficult. Try to replace last 2 lines to StaticImageControlSetBitmap. It is in Archive.qml and here:
How to get bitmap of a WebCam capture, and display in dialog
StaticImageControlSetBitmap hWnd hb
DeleteObject hb