Hi
I am facing a crash only in 2k with the following scenario . In XP and 98 this problem is not observed
In my scenario I have X.exe, Y.dll. Y.dll exports a function (say Z) which has DoModal() of a dialog called. X.exe on click of a button starts a thread and in that thread calls the Z method which shows up a dialog. The problem happens when the button is clicked thrice or more than thrice. The three dialogs are lauched in three threads and are shown. But if I try to move the dialogs, After some time a crash is seen, whcih occurs in a method of MFC42.dll.
More information about the scenario is X.exe links Y.dll statically. X links MFC as a shared dll, where as Y.dll links the same as a static dll. I suspected module state change when the the control is going out of thread boundary to Dll. But the exported function already has AFX_MANAGE_STATE(AfxGetStaticModuleState( )); as te first statement.
Please let me know if any body faced the same problem before and point me towards the solution.
Thanks
Sre