Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Sam Gamgee

CoUninitialize() hangs

This topic is 5645 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm having trouble with the CoUninitialize() procedure with DirectPlay. Whenever I call it, my app hangs and I have to use CTRL-ALT-DEL to get out of it. My network code all works fine until CoUninitialize() is called. Here is my cleanup code for directPlay:
void KillDP()
  if( g_pDP )

  g_pDP = NULL;
  g_pDeviceAddr = NULL;
  g_pHostAddr = NULL;

  // program hangs here:


  DPInit = false;
I don't understand why this procedure doesn't work. Perhaps someone can see what I'm doing wrong? Thanks in advance. -Sam. http://waltsgames.iwarp.com RTS3D -- a 3D Real Time Strategy game http://waltsgames.iwarp.com/rts3d.html [edited by - Sam Gamgee on March 2, 2003 2:06:13 PM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!