Idle handler installed twice

Hi list,

Maybe there is someone out there that understands what is going on. We have
written a complicated application. A complicated screen is built in a
separate thread. Before the thread is started, in the main thread I start an
Idle handler that performs some actions. No idle activity is started by in
the thread except for the logging module. Now the thread is crashing and it
seems the logging module is crashing. I haven't got a clue on what is going
on here, and how to avoid this.

Traceback (most recent call last):
  File "/home/dick/CVix/CVix/src/IdleProc.py", line 81, in IdleExec
    Getenv.Config.log.debug('Idle routine %s wordt gestart als elapsed %s >
mintijd %s', routine, elapsed.seconds, mintijd)
  File "/usr/lib/python2.3/logging/__init__.py", line 878, in debug
    if DEBUG >= self.getEffectiveLevel():
  File "/usr/lib/python2.3/logging/__init__.py", line 1055, in
getEffectiveLevel
    while logger:
wxPython.wxc.wxPyAssertionError: C++ assertion "wxTheApp->m_idleTag == 0"
failed in /var/tmp/wxPythonGTK2-py2.3-2.4.2.4/src/gtk/app.cpp(374): attempt
to install idle handler twice

···

--

Met vriendelijke groet,

Dick Kniep
Lindix BV
De Specerij 30
1313 NE ALMERE
tel. 036-5215580
fax. 036-8441825

****************************************************************************
****************************************************************************
This is an e-mail message from Lindix. The information contained in this
communication is intended solely for use by the individual or entity to
whom it is addressed. Use of this communication by others is prohibited.
If the e-mail message was sent to you by mistake, please destroy it without
reading, using, copying or disclosing its contents to any other person.
Sender accepts no liability for damage related to data and/or documents
which are communicated by electronic mail.
****************************************************************************
****************************************************************************