Just wondering if anyone else has had this problem and whether there is any way around it.
Basically, I have MEPIS installed, which works great with all my hardware and BlitzMax programs, but I am having problems with two of my programs (and as luck would have it, the two I want to release as freeware!). They work without a problem until you come to exit, at which point Linux and possibly the programs themselves lock up! This only happens when the games are ran in full screen mode (windowed mode runs perfectly).
Now for the weird bit... Everything else I have written in BlitzMax works without a problem - full screen, windowed and at all resolutions from 640x480 up to 1024x768 (the games run at 1024x768 and 800x600, btw).
At first I thought this was an audio problem, as that was the only difference between my games and the various other stuff I have written. However, I have completely stripped out all audio from one of the games and the same thing happens!
Here's what else I have done.
1. Added EndGraphics before End
2. Manually freed all media and used FlushMem before EndGraphics.
3. Loaded graphics instead of using Incbin.
4. Taken out End
None of this has had any effect. I even forced the program to write to a text file as it closed to see if I could spot where it halted, if at all. It goes through every step without a problem, so either my game is crashing at the point it closes or Linux is crashing when it tries to re-establish the desktop.
Incidentally, the result of the crash is that the game screen can still be seen on top of the desktop in the upper left corner of the screen. The IDE and the rest of the desktop is behind this 'window'. I run my desktop at 1280x1024.
I'm running MEPIS, a Debian based Linux, Kernal 2.6, KDE desktop (the latest version) and I have an ATI Radeon 9800 Pro graphics card.
So, does anybody have any ideas on what to try next?
Basically, I have MEPIS installed, which works great with all my hardware and BlitzMax programs, but I am having problems with two of my programs (and as luck would have it, the two I want to release as freeware!). They work without a problem until you come to exit, at which point Linux and possibly the programs themselves lock up! This only happens when the games are ran in full screen mode (windowed mode runs perfectly).
Now for the weird bit... Everything else I have written in BlitzMax works without a problem - full screen, windowed and at all resolutions from 640x480 up to 1024x768 (the games run at 1024x768 and 800x600, btw).
At first I thought this was an audio problem, as that was the only difference between my games and the various other stuff I have written. However, I have completely stripped out all audio from one of the games and the same thing happens!
Here's what else I have done.
1. Added EndGraphics before End
2. Manually freed all media and used FlushMem before EndGraphics.
3. Loaded graphics instead of using Incbin.
4. Taken out End
None of this has had any effect. I even forced the program to write to a text file as it closed to see if I could spot where it halted, if at all. It goes through every step without a problem, so either my game is crashing at the point it closes or Linux is crashing when it tries to re-establish the desktop.
Incidentally, the result of the crash is that the game screen can still be seen on top of the desktop in the upper left corner of the screen. The IDE and the rest of the desktop is behind this 'window'. I run my desktop at 1280x1024.
I'm running MEPIS, a Debian based Linux, Kernal 2.6, KDE desktop (the latest version) and I have an ATI Radeon 9800 Pro graphics card.
So, does anybody have any ideas on what to try next?