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.
Rodrigo Corral [MVP] - 24 Nov 2005 16:55 GMT
Read this...
http://groups.google.es/group/microsoft.public.vc.mfc/browse_frm/thread/525e2bba
8deb469c/835fa664306b618c?lnk=st&q=AFX_MANAGE_STATE(%26afxModuleState)%3B)&rnum=
1&hl=es#835fa664306b618c

Signature
Un saludo
Rodrigo Corral González [MVP]
FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
Rodrigo Corral [MVP] - 24 Nov 2005 17:11 GMT
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

Signature
Un saludo
Rodrigo Corral González [MVP]
FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
Al - 28 Nov 2005 01:31 GMT
I am using VS05 and am still seeing this crash. Is there any workaround for it?
Thanks,
Al.
> In Visual Studio 2005 the code has been change to...
>
[quoted text clipped - 5 lines]
>
> Note that thecall ot AFX_MANAGE_STATE is inside the prepocesor's check
Rodrigo Corral [MVP] - 28 Nov 2005 11:32 GMT
I don´t know about a workarournd, I´m sorry...

Signature
Un saludo
Rodrigo Corral González [MVP]
FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
Al - 28 Nov 2005 19:26 GMT
I would like to confirm that you think this issue should not be happening
with VS05, is that correct?
Thanks,
Al.
> I don´t know about a workarournd, I´m sorry...