01-12-2011 02:11 PM
Daniel, that was my point. You must call QuitUserInterface from the same thread that called RunUserInterface. Therefore, you should not call QuitUserInterface directly.
Luis
01-13-2011 03:15 AM
Thanks Luis for making it clear.
I'll use PostDeferredCallToThread(), but either way I have my problem solved.
01-13-2011 03:38 AM
Daniel,
Apologies for the misleading post.
I forgot the point that your panel is loaded by a thread other then DLL's main thread.
So Luis is -of course- correct in his suggestion of using PostDeferredCallToThread.
01-13-2011 03:48 AM
No worries.
Everything is working well and PostDeferredCallToThread() will be my next upgrade.
I appreciate everyones effort.