[comp.windows.x] Another XtAddTimeout unreliability

klute@tommy.informatik.uni-dortmund.de (Rainer Klute) (12/21/90)

I have the following problem with XtAddTimeout under X11R4 (patchlevel 18,
Sun IPC, SunOS 4.0.3): I am adding a timeout procedure A to an application
context. Within the timeout procedure I rewind the clock with another call
to XtAddTimeout. Further I have a widget that sometimes adds another
(widget internal) timeout procedure B to the same application context.

The problem is that if the widget gets destroyed timeout procedure A will
be executed not further. I helped myself by adding A explicitly in a widget
destroy callback but this is ugly and does not help reliably. Sometimes the
timeout cycle is still broken and will recover no more.

Any hints?

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB             klute@unido.uucp, klute@unido.bitnet
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-4600 Dortmund 50        |\|\    Fax : +49 231 755-2386