Exit errors on Linux Apps

Miscellaneous Forums/Linux Discussion/Exit errors on Linux Apps

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Closing a graphics window (pressing the "x" button in the window's corner) on Linux gives me:

XIO:  fatal IO error 22 (Invalid argument) on X server ":0.0"
      after 57 requests (57 known processed) with 0 events remaining.
The app does end, but not without throwing this error to the system

I've tried to put in an "If AppTerminate() = True" statement in the loop to see if I could catch the event and shut down "properly", but it seems to ignore this line (could be that I am doing wrong?).

Ubuntu 8.04, nVidia 7900GTX, BlitzMax 1.30