PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

background app sleeping

I've created an program that starts a new thread that sleeps for 60,000 milliseconds then the app calls ShowWindow(SW_HIDE).

When the time elapses in the new thread, it grabs the current screen buffer and melts it... yes, more or less a practical joke...

I used the extra thread because using pocketfrog, the application is pretty much suspended. And I want it to be as little load on the system as possible.

But the thing is, it causes my game and others to stutter really badly. Other. What, if anything, am I doing wrong? Is there another way to suspend and wake up your app at a later time?
Attachments:
melt.JPG
What is the priority of the thread you a creating?

Dan East
Conan, can you assume a new thread will just default to THREAD_PRIORITY_NORMAL? That's what I was doing, but the problem turned out to not be the new thread at all.

It's the way pocketfrog suspends itself... which was fixed by adding a sleep statement.

I'll post this issue and the fix in the pocketfrog forum under the Future PF Features thread if anyone is interested.
Dave Johnston · 10 Apr 2004, 16:01 UTC
Heh, that's quite funky.
Trippy indeed.