Crash on exiting managed MFC application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an MFC based application which uses remoting using VS05. On exiting
the application, I intermittently get a crash at line 195 in dllmodul.cpp
(AFX_MANAGE_STATE(&afxModuleState);)

The exception I see in the IDE is "Unhandled exception at 0x7c81eb33 in
MgmtApp.exe: 0xC0020001: The string binding is invalid." where MgmtApp.exe is
my applcation.

It happens both in the client and server applications intermittently.

Anyone have any ideas what could be wrong and what is the solution?

Thanks,
Al.
 
In Visual Studio 2005 the code has been change to...

#ifdef _AFXDLL

AFX_MANAGE_STATE(&afxModuleState);

#endif

Note that thecall ot AFX_MANAGE_STATE is inside the prepocesor's check


--
Un saludo
Rodrigo Corral González [MVP]

FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
 
I am using VS05 and am still seeing this crash. Is there any workaround for it?

Thanks,
Al.
 
I would like to confirm that you think this issue should not be happening
with VS05, is that correct?

Thanks,
Al.
 
Back
Top