On Mar 8, 2006, at 2:39 PM, Chris Kohout wrote:

I put an animation routine in a thread (priority 2), so my interface would still be responsive. I set a timer to run the thread every few seconds.

Now, when I quit the app in Windows, it goes from 30% cpu usage to 99%, and stays there until I kill the process in the task manager.

I don't see anything like this on the Mac.

My window.close event does this:

Window1.AnimTimer.mode = 0
Window1.Anim1.kill
quit

Has anyone else run into this?

This might not have anything to do with the thread... you might have an infinite loop somewhere in your code, such as in the Window or App CancelClose() event.

The best way to figure out what is going on when the CPU is getting pegged like this is to: run a Debug build of your App and reproduce the steps to get the CPU pedded, and the click the Pause button in the REALbasic IDE. The debugger will take you right to the code.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to