my program uses this code:
Code: Select all
SFPCGetFrameBitmap fbmp = { 0 };
SendMessage(this->m_flashHwnd, FPCM_GET_FRAME_BITMAP, 0, (LPARAM)&fbmp);
to get the image from the flash window (after this i create a gdi+ bitmap from the returned hbitmap object). It's working perfectly, but some flash throws an unhandled exception (Access violation reading location) to the SendMessage line after few minutes.
I have no idea why this happens.
Any help appreciated.