Finalizer Queue

  • Thread starter Thread starter ajbecker
  • Start date Start date
Thanks for all your help. Unfortunatly, it looks like the problem is
elsewhere. After adding the following code into the main loop of the
unmanaged code, the memory bloat still occurs.

{
HANDLE hThread = GetCurrentThread();
// Spin the message loop.
MsgWaitForMultipleObjects(1, &hThread, TRUE, 100, 0xFFFFFFFF);
}

Again, thanks for your help, but it looks like it's back to the drawing
board for me.
 
| Thanks for all your help. Unfortunatly, it looks like the problem is
| elsewhere. After adding the following code into the main loop of the
| unmanaged code, the memory bloat still occurs.
|
| {
| HANDLE hThread = GetCurrentThread();
| // Spin the message loop.
| MsgWaitForMultipleObjects(1, &hThread, TRUE, 100, 0xFFFFFFFF);
| }
|
| Again, thanks for your help, but it looks like it's back to the drawing
| board for me.
|

Note that this is not enough to spin a message loop, this only picks up a
single message from the COM created invisible window queue.
But I suggest you try to find out if the finalizer is really blocked, this
can be achieved by attaching a native debugger like windbg.exe (part of the
downloadable "debugging tools for windows") and SOS.dll (part of the
framework).

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top