Notifications
Clear all
[Closed] Bitmap::RefreshWindow() hangs on second thread
Apr 03, 2012 5:27 pm
Hello,
Bitmap::RefreshWindow() always makes my plugin hang if I am using two or more threads. I am using mutexes and Bitmap::RefreshWindow() never runs at the same time. But it hangs as soon as RefreshWindow() is started on not main thread.
I found a similar thread http://forums.cgsociety.org/showthread.php?t=465654 it doesn’t contain a help.
I tried to debug this hand and I received following Call Stack data:
> user32.dll!NtUserMessageCall() + 0xa bytes
user32.dll!SendMessageWorker() - 0x3118 bytes
user32.dll!SendMessageA() + 0x60 bytes
bmm.dll!VFB::RefreshWindow() + 0x1b8 bytes
bmm.dll!Bitmap::RefreshWindow() + 0x12 bytes
max_render.dll!ImageData(void * i_image=0x000000004e399220) Line 412 C++
But I still don’t know how to fix that.
Does anyone know how to use this damn method Bitmap::RefreshWindow() on several threads?