Yes, this seems to be a problem where the call stack shows a destructor getting called on .dll unload of the client .dll.
client.dll!$E11() + 0x13 C++ Anything that looks like $E11() is an object sitting on the stack during .dll init. At the lower level, it appears to be trying to "delete" a vgui::Panel object of some kind, but vgui is most likely already shut down, so it's crashing (the panel was probably already deleted by vgui during shutdown). You might try marking the m_pViewport (SDKViewport) panel as SetAutoDelete( false ); and see if that resolves the crash. Or it could be a child panel of the viewport (a hud element of some kind). You could probably put a breakpoint in the removeallpanels call and see which panel it's puking on (you might have to print them out during startup to get meaningful panel names from them...) Yahn -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl "XP-Cagey" Patrick Sent: Tuesday, February 22, 2005 6:25 AM To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] Bizzare/Random/Frightening crash Inconsistent exit crashes can be caused when there are dependencies on automatically destructed singletons or static variables--the stack you gave looks like final cleanup, and if the call to RemoveAllPanels uses an object that has already been destructed (possibly the CBaseViewport itself, possibly a singleton used by that function call), the result would be gibberish; calls into that object would have erratic behavior. The compiler should in theory use a consistent cleanup ordering between compiles, but there's no requirement specified by the C++ standard that would enforce this, and if the destruction order isn't consistent for some reason, it would explain the behavior that you're seeing from compile to compile. Any change to apparently unrelated code could potentially result in the destruction order of singletons being changed. I'd begin looking for early destruction of resources used by RemoveAllPanels (including the CBaseViewport itself) as a cause. Karl -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maurino Berry Sent: Monday, February 21, 2005 9:39 PM To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] Bizzare/Random/Frightening crash unfortunately cleaning it doesnt seem to help very often :< I think I'm going to try compiling on another computer maybe if I can't get any more suggestions from here.. thanks though :D _________________________________________________________________ Designer Mail isn't just fun to send, it's fun to receive. Use special stationery, fonts and colors. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU =htt p://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSNR Premium right now and get the first two months FREE*. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders