Jump to content
  • Advertisement
Sign in to follow this  
Daniel Miller

The exact same executable is getting 0 cpu time on a different computer

This topic is 4865 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

My application is getting 98% cpu time from my computer, but on a coworker's, it's getting nothing. In fact, a previously working version of the exe stopped working as well. Why can this be happening? I have no Sleep calls in my program, and it shouldn't be running any differently. edit: rushed typos

Share this post


Link to post
Share on other sites
Advertisement
Give us something to go on please!

Or just add a logging class to your program and analyze the log to see what's happening.
Or use remote debugging.
Or post some or all of the source code somewhere...

Oh, and you probably should have a sleep call somewhere in your program, as I highly doubt your program needs to use every ounce of processing power it can get.

Share this post


Link to post
Share on other sites
Does it use any waits or GetMessage calls? And yes, as he said, with so little information, this is reminiscent of a game of 20 questions :P

Share this post


Link to post
Share on other sites
Hahaha, that was an aweful question.

The only thing I can say is that it uses threads. It may be that a thread was "stuck" in memory on her computer, because after she restarted, it worked. I went back to my code, tested it, and finally made my app "leak" a thread.

Do you know how I can fix this?

I have this code:

if (thread != null && thread.IsAlive)
{
thread.Abort();
}






...wired to the Closing event, the ApplicationExit event, and in my form's Dispose method. Anywhere else I should put it?

edit: I never feel safe when using threads.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!