Xref: news2.mv.net comp.os.msdos.djgpp:4477 From: westonpa AT mekab DOT usc DOT edu (Weston T. Pan) Newsgroups: comp.os.msdos.djgpp Subject: Am I experiencing memory management problems with DJGPPv2? Date: 2 Jun 1996 14:35:45 -0700 Organization: University of Southern California, Los Angeles, CA Lines: 33 Sender: westonpa AT mekab DOT usc DOT edu Message-ID: <4ot1fh$prq@mekab.usc.edu> NNTP-Posting-Host: mekab.usc.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I posted a message in comp.lang.ada regarding problems running a tasking program with gnat3.04(DOS). Unfortunately, I haven't had any luck with finding solutions to this problem from that group so I hope I have better luck here(I know this is mostly a C/C++ group but please keep reading). When I run the program diners.exe (one of the examples in the gnat package) I immediately get the following output: "Cannot continue from exception, exiting due to signal 0123 Page fault at eip=0001a903, error=0006 eax=0000000e ebx=00000000 ecx=7ffffe7f edx=000441b4 esi=0000012d edi=00048554 ebp=000883c8 esp=00088c0 cs=00a7 ds=00af fs=008f gs=00bf ss=00af Call frame traceback EIPs: 0x0001a903 _sighandler+115, line 835 of signal.c 0x0002b5c7 _raise+203 0x0002b621 ___djgpp_exception_processor+25 0x0008845c 0x8845c 0x00001a38 _interfaces__c__pthreads__pthread_init+8, line 243 of i-cpthre.adb 0x00001ce8 0x0001580 _main+52, line 23 of b_diners.c 0x00027e8b ___crt1_startup+115 " When I trace through the program with fsdb it starts working but then causes an exception at some point. I've experienced this with another tasking example too. I don't know if this is related to the above, but after I use CWSDPMI for compiling programs, my system hangs when I try running Norton Commander. Ofcourse, I now just use EMM386 because of this. The system I am using is a 386 with 4MB.