Notifications
Clear all

[Closed] Bitmap::RefreshWindow() hangs, not crashes

Hi,
For some reason, using that function seems to make my code hang, but not crash (i.e. no access violations.) I checked the values I’m passing, and they seem perfectly fine. What could cause it to hang? It’s as if it enters an infinite loop. Although, when using a bitmap of a very small size, e.g. 16 x 16 or 32 x 32 pixels, it works. Higher, like 64 x 64, it fails.

What else is interesting is that passing 0 (NULL) as the RECT * to the function still hangs it. (It should update the whole screen). This clearly shows that my values are fine, and something is wrong internally.

Any help?

EDIT: Forgot to mention, I’m passing a pointer to the Bitmap object to a separate DLL, and calling it from there. (Along with PutPixels() and it works fine). That may have something to do with it. Perhaps its a linker/compiler option I’m missing?