WaitForInput runaway (5.2.1)

Help
2003-08-23
2003-08-23
  • Bruce Twambly
    Bruce Twambly
    2003-08-23

    Hello,

    I'm a long time fan of plplot and now have a question that I can't figure out by looking through the code.  (It may be a stupid X window issue on my part)

    I have an app that can scan data for plots in real-time or in batches.  When I'm outputting to xwin and batching the output, I have the pause set to 1, which calls WaitForPage and it enters a tight little XWindowEvent loop looking for a mouse click or enter to break out.

    My problem comes if I kill the window through the Window Manager destroy button (KDE 3).  I've tried catching signals, intercepting the MasterEH handler and inspecting XEvents and cannot seem to identify this case.

    The end result is the window is destroyed and the process continues in a busy wait (I guess because XWindowEvent no longer blocks)

    Have you seen this before and am I missing a silly X window hook?

    Thanks in advance.
    Starfire-1

     
    • Bruce Twambly
      Bruce Twambly
      2003-08-23

      Doh, Please Disreguard....

      Finally ran across the XSetIOErrorHandler function to catch the broken pipe.