Hi,
I just startet to play with the GRX library for DOS (DJGPP). Looks fine for me, but I have a small problem. For development I would like to use DJGPP under Win98. I did this before with the Allegro library without any problems. When I start a graphics application (even a hello world programm) using GRX from RHIDE the program runs fine but after ending Win98 says that "this application cannot be run in window mode", crashing the whole RHIDE programm. I can switch to fullscreen before starting my application but then after a few runs the linker gets stuck with "too many open files". Can you give me some advice how to solve that?
Thank you Thorsten
Hugo Simon wrote:
Hi,
I just startet to play with the GRX library for DOS (DJGPP). Looks fine for me, but I have a small problem. For development I would like to use DJGPP under Win98. I did this before with the Allegro library without any problems. When I start a graphics application (even a hello world programm) using GRX from RHIDE the program runs fine but after ending Win98 says that "this application cannot be run in window mode", crashing the whole RHIDE programm. I can switch to fullscreen before starting my application but then after a few runs the linker gets stuck with "too many open files". Can you give me some advice how to solve that?
Not seem here, and I use w98 too to test the DOS GRX version.
Have the GRX test programs the same problem?
What videodriver reports the demogrx program?
Or perhaps you have a bug in your program.
Greetings, M.Alvarez
When I start a graphics application (even a hello world programm) using GRX from RHIDE the program runs fine but after ending Win98 says that "this application cannot be run in window mode", crashing the whole RHIDE programm.
Your Win~1 (or the video driver, doesn't matter) does not fully support graphics programs running in a window. Configure your application to use VESA (or even better, standard VGA) modes, or run it from fullscreen, or ask Microsoft, in this order :-)
Your Win~1 (or the video driver, doesn't matter) does not fully support graphics programs running in a window. Configure your application to use VESA (or even better, standard VGA) modes, or run it from fullscreen, or ask Microsoft, in this order :-)
I think thats a little bit too easy. :)
I tried VESA and I tried VGA, all the same. But that Windows generally does not support graphics from DJGPP/RHide isn't true. If I use the Allegro Library all works fine, but Allegro is too oversized for me, I like GRX much better.
But there is something more wrong. If I used GRX two time within RHide, I cannot link anymore. The linker says "memory exhausted" and I have to end and restart RHide. That's really bad for developing. Also this problem doesn't occure with Allegro.
So I think somehow GRX does not clean up it's resources very good.
Thank you Thorsten
Hugo Simon wrote:
Your Win~1 (or the video driver, doesn't matter) does not fully support graphics programs running in a window. Configure your application to use VESA (or even better, standard VGA) modes, or run it from fullscreen, or ask Microsoft, in this order :-)
I think thats a little bit too easy. :)
I tried VESA and I tried VGA, all the same. But that Windows generally does not support graphics from DJGPP/RHide isn't true. If I use the Allegro Library all works fine, but Allegro is too oversized for me, I like GRX much better.
But there is something more wrong. If I used GRX two time within RHide, I cannot link anymore. The linker says "memory exhausted" and I have to end and restart RHide. That's really bad for developing. Also this problem doesn't occure with Allegro.
So I think somehow GRX does not clean up it's resources very good.
Probably you are right, but I can?t test it, all my pc's work fine. Perhaps it depends on the graphics card. I have a S3, a Matrox G200, a Vodoo 3 and an Ali (in a Toshiba notebook).
I wanted to suggest you to use the 'stdvga' driver, but you have reported it does the same, so, if you can debug it...
Greetings, M.Alvarez
But there is something more wrong. If I used GRX two time >within RHide, I cannot link anymore. The linker says "memory exhausted" and I have to end and restart RHide. That's really bad for developing. [...] So I think somehow GRX does not >clean up it's resources very good.
Also note that the old djgpp versions (your rhide is probably statically linked against one of em) release almost no memory after a spawn*()/exec*() until the very first djgpp appication terminates. So it might be a good idea to recompile rhide with the current (2.03) djgpp, rhide's binaries are realy dated...