Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2005

Tip: Looking for answers? Try searching our database.

Crash on exiting managed MFC application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Al - 23 Nov 2005 21:19 GMT
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...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.