Hi Derek,
 
>From my experience it occurs when shutting down the CSteamAPILoader during
step #5
(I tried cleaning up the destructor - as m_pSteamclient etc hadn't been
reset - but the DLL looked like it had already invoked "FreeLibrary" ).
 
1.   m_ptClientEngine->ReleaseUser( m_hSteamUser, m_hPipe);
2.   bool fRc = m_ptClientEngine->BReleaseSteamPipe( m_hPipe);
...
 3. if ( m_pfnSteamCleanup )
  {
   m_pfnSteamCleanup( tSteamError );
   m_pfnSteamCleanup = NULL;
  }
4.  if ( m_pfnSteamShutdownEngine )
  {
   m_pfnSteamShutdownEngine( tSteamError );
   m_pfnSteamShutdownEngine = NULL;
  }
...
// Devil lives here VVV
5. delete m_ptSteamApiLoader; //<=========
  m_ptSteamApiLoader = NULL;

// Here is where the delete of CSteamAPILoader
// Expansion of #5
 
class CSteamAPILoader
{
public:
 
...
 ~CSteamAPILoader()
 {
  if(m_pSteamclient)
  {
   delete m_pSteamclient;
   m_pSteamclient = NULL;
  }
  if(m_pSteam)
  {
   delete m_pSteam;
   m_pSteam = NULL;
  }
 }

 
  _____  

From: hlcoders-boun...@list.valvesoftware.com
[mailto:hlcoders-boun...@list.valvesoftware.com] On Behalf Of Derek Brown
Sent: Monday, 30 July 2012 7:27 AM
To: hlcoders@list.valvesoftware.com
Subject: [hlcoders] hanging hl2.exe process


Hi, 

In the last issue, there looked to be some discussion of a fix for the
hanging hl2.exe process issue. Unfortunately, it was a bit disjointed ( i'm
missing something ), and although I understand the implications of the code
posted, I have no idea where it would go :P I'm fairly new to modding, and
my first project was to port an existing mod from an older version of the
source engine. It's up and running on 2007 now, but there are still a few
remaining issues that I'd like to clear up before developing the mod
further. The main problems I am facing are:

- hl2.exe process hangs after hosting a local server during the lifetime of
the process
- opening the scoreboard causes servers to crash!

Would anyone be able to give me some potential causes / starting points that
could reasonably cause these problems?

Thanks,
-Derek Brown
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

Reply via email to