CPU usage problem

John Conner wrote:

Hi,

I'm having a problem with a program that runs on both Windows (W2K - Python 2.2 - wxPython 2.4.0.7 ) and Linux (Debian sarge(testing) - Python 2.3.3 - wxPython 2.4.2.4).

I have not messed with the Linux side much since most of the users have Windows. Recently one of the users started using Linux and found that the application is consuming almost 100%
of the CPU. I tried it here - same application files on both.
My W2k box shows the application using a few percent (1-25). The Linux system is using about 80%!

I've turned off the threads that handle the communications with
the serial port - no real change in CPU usage. With the threads
disabled, the only thing running is the display and it still takes
75-80% of a 1.3 GHz CPU.

Anyone have an idea of where my dumb problem might be? The application
was built initially with boa-constructor. Nothing fancy - some buttons
and a few text controls.

DO you have any EVT_IDLE or EVT_UPDATE_UI handlers? If so these are an area to investigate to ensure they are behaving properly.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!