Application stops owing to callback from unmanaged DLL
Date: 09/16/09
(C Sharp) Keywords: asp, microsoft
Why does my c# application stop after receiving a callback from unmanaged DLL?
I've just encountered this very strange problem. And wonder why it could happen.
The similar situation is described by someone on MSDN-site.
http://social.msdn.microsoft.com/Forums/en-US/clr/thread/25bd7c1d-373f-4ef7-a64b-a101897b6b9a/
But nobody there brought a clear explanation of that yet.
This little article described how to deal with callbacks from unmanaged code.
http://www.codeproject.com/KB/cs/win32_to_net.aspx
I think I did everything properly so that the program works well. But it doesn't.
If necessary, I could share snippets of my code.
Thank you.
Source: http://csharp.livejournal.com/105163.html