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++ / March 2007

Tip: Looking for answers? Try searching our database.

Mixed assembly crashes on exit

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Walsh - 08 Mar 2007 22:22 GMT
VS2005 - VC++/MFC:  most modules compiled as native. Two modules compiled as
/clr (managed). One of these two modules uses a .NET C# Windows form User
control in an MFC dialog box.

The program seems to run fine, but crashes when I exit.

The same crash occurs even if I immediately exit when the program window
opens.

I have reproduced the problem on two development systems. While the final
error is different on the two systems, is different, it occurs in the same
general area. I have tracked the code to MINTERNAL.H,
ModuleUninitializer::SingletonDomainUnload(). It is using a C++ for each
statement to iterate through a collection of handlers presumably to unload
the modules of the program. It is possible that this collection has gotten
corrupted.

Help! I think I am in over my head with this problem.

Thanks,
Jim
Scot T Brennecke - 11 Mar 2007 01:19 GMT
Jim,
   Do you have DebugDiag installed?  If not, download it:
Download details: Debug Diagnostic Tool v1.1:
http://www.microsoft.com/downloads/details.aspx?FamilyID=28bd5941-c458-46f1-b24d
-f60151d875a3&DisplayLang=en


   Do you have a symbol server cache set up on your machine? If not, do this:
Use the Microsoft Symbol Server to obtain debug symbol files:
http://support.microsoft.com/kb/311503
Using a Symbol Server (Visual Studio Debugging):
http://msdn.microsoft.com/library/en-us/vsdebug/html/vxtskUsingASymbolServer.asp
?frame=true


   Once you have these things set up (if not already), use DebugDiag to monitor your application
and generate a crash dump when it occurs.

   If you don't get enough clues to solve this on your own, post back here for more guidance.

> VS2005 - VC++/MFC:  most modules compiled as native. Two modules compiled as
> /clr (managed). One of these two modules uses a .NET C# Windows form User
[quoted text clipped - 17 lines]
> Thanks,
> Jim

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.