Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 07-13-2012, 06:30 AM   #1
Dr. Cooldude
 
 
 
Join Date: Jul 2012
Reputation: 0
Posts: 4
Thumbs down hl2.exe won't close itself.

Hello there.

I'm currently working on a multiplayer Half-Life 2 mod, and the game seems to run fine. However, when I quit the game, it still appears to run on Steam.

I open up the Task Manager, and it seems that even when you quit the game, hl2.exe will still run in the background, forcing me to kill the process manually. Any working solution would be deeply appreciated.

P.S. I might have a feeling that it's because it's not a Release build, but I'm not sure...
Dr. Cooldude is offline  
Reply With Quote
Old 07-13-2012, 06:46 AM   #2
Sandern
 
 
 
Join Date: Jun 2009
Reputation: 34
Posts: 101
You are not the only one: http://www.mail-archive.com/hlcoders.../msg31629.html
Sandern is offline   Reply With Quote
Old 07-13-2012, 06:47 AM   #3
Dr. Cooldude
 
 
 
Join Date: Jul 2012
Reputation: 0
Posts: 4
Ah, I'll take a look at it, thanks!
Dr. Cooldude is offline   Reply With Quote
Old 07-13-2012, 06:50 AM   #4
empBoX
 
 
 
Join Date: Dec 2008
Reputation: 13
Posts: 25
I've had this problem on several projects myself. I'm not sure if it's an actual SDK bug, or if it's a compatibility issue with newer Windows builds. I have noticed that it seems to start this behavior right about the time I start changing one of the GetGameDescription() functions, but this could be a coincidence.
I know I'm not much help, just thought I'd jump in the same boat with you, searching for rescue.
empBoX is offline   Reply With Quote
Old 07-13-2012, 11:00 AM   #5
RomD
 
Join Date: Mar 2010
Reputation: 2
Posts: 33
This fix/workaround from the mailing list worked for me:

Add the green part to cdll_client_int.cpp around line 907.

Code:
	IGameSystem::ShutdownAllSystems();

	gHUD.Shutdown();
	VGui_Shutdown();
	
	ClearKeyValuesCache();

	// Fix for 'Thread "CNet Encrypt:0" failed to shut down' problem
	SteamAPI_Shutdown();

	DisconnectTier3Libraries( );
	DisconnectTier2Libraries( );
	ConVar_Unregister();
	DisconnectTier1Libraries( );
RomD is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 09:15 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.