Hello all,
I'm trying to port my old programs written for Borland Pascal 7.0 to Linux (kernel v. 2.2.10). I have chosen gpc v. 19990510 and as an replacement for BP's graph unit the bgi2grx package. The compilation of my old source codes was no problem. But when I start a program using the bgi2grx unit, it ends earlier or later with a segmentation fault (SIGSEGV). The traceback shows, that an innocent library function like getch() seems to be responsible.
This happens also with the example programs delivered with bgi2grx. I have found out, that these programs are even more unstable, if I compile them with libX11 insted of libvga. Furtheron I have observed, that if I move the mouse pointer over the X-window, where the graphical output occurs, the crash comes earlier. Funny, isn't it.
In the DJGPP FAQ-list I have discovered, that the same happened already with bcc2grx under DOS. The reason was, that the stack was too small. There the problem could be solved by increasing the stack size.
Now my questions:
Is it possible, that insufficient stack size is the reason for my problems, too?
If yes, is there a way how to increase stack size?
Peter