From: Erik Berglund Newsgroups: comp.os.msdos.djgpp Subject: Re: GPF with system() and clock int. Lines: 33 Message-ID: Date: Sat, 22 Jul 2000 17:52:15 GMT NNTP-Posting-Host: 194.237.158.164 X-Complaints-To: abuse AT telia DOT com X-Trace: newsb.telia.net 964288335 194.237.158.164 (Sat, 22 Jul 2000 19:52:15 CEST) NNTP-Posting-Date: Sat, 22 Jul 2000 19:52:15 CEST Organization: Telia Internet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote: > > > > "Charles Sandmann" wrote: > > > > > > Try increasing the internal stack size with CWSPARAM. > > > > > Thanks for your reply. I changed the internal heap in > > CWSDPMI r4 from 128 to 256 paragraphs: > > This time the computer locked up completely so I had to > > push the reset button. > > FWIW, I cannot reproduce your problem on my DOS machine (a P166 > running DOS 5.0). I tried that both in an optimized configuration > (QEMM 8.03 with SmartDrv and a large RAM disk) and in vanilla > configuration (no disk cache and no device drivers/TSRs). The program > worked in both cases. > > I tried to run it several times one after the other. I understand > that in your case, it doesn't need too many attempts to crash. So it > seems like it doesn't happen to me. I usually get an error after 4 or 5 runs, maybe more sometimes (with the clock tick frequency at 16x 18.2 Hz). It could be some hardware problem in my PC. Anyways, my 16-bit Turbo Pascal TSR does the same job, and it seems to work well together with gcc. -- Erik Berglund erik2 DOT berglund AT telia DOT com