Date: Sat, 23 Mar 1996 19:51:10 -0500 From: Greger Palm <101701 DOT 2611 AT compuserve DOT com> Subject: My DJGPP programs doesn´t work To: Djgpp Gurus Message-ID: <199603231951_MC1-212-EAAF@compuserve.com> Hello! I got DJGPP v2.0 a couple of days ago. My programs compiled fine without any errors. But when I should run them they says "GENERAL PROTECTION FAULT" or "PAGE FAULT". This only happens then I try to allocate more than 64KB memory. I´m running my programs from a Windows95 dos-box (If I run it in MSDOS-mode, it says No DPMI). I have a Pentium 90 MHz with 8MB memory. I discovered this problem then I was was using the Object to COFF converter(o2c). It gave me a "GENERAL PROTECTION FAULT". I´ve included the output from this program in the letter. Output from O2C.EXE O2C - version 0.6 BETA (c)1996 RiCO/SPiRiT - Richard Spijkers... Exiting due to signal SIGSEGV Page fault at eip=0000b5b5, error=0006 eax=00060002 ebx=00000813 ecx=0000001c edx=0046ffbd esi=00060058 edi=0046ffff ebp=00058418 esp=0005840c cs=00af ds=00b7 es=00b7 fs=0087 gs=00c7 ss=00b7 Call frame traceback EIPs: 0x0000b5b5 0x00003436 Reading : vatpm.lib Output from GO32-V2.EXE go32/v2 version 2.0 built Jan 23 1996 22:03:02 Usage: go32 coff-image [args] Rename this to go32.exe only if you need a go32 that can run v2 binaries as well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH. DPMI memory available: 4852 Kb DPMI swap space available: 10308 Kb List of AutoExec.Bat share.exe /l:500 @echo off set path=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\;c:\dos;c:\windows\system;c:\menu;c:\packers\zip;c:\packers\arj;c:\djgpp\bin set temp=C:\WINDOWS\TEMP SET DJGPP=C:\DJGPP\DJGPP.ENV SET SOUND=C:\SB16 SET BLASTER=A220 I5 D1 H5 P330 T6 SET MIDI=SYNTH:1 MAP:E Rem lh C:\SB16\DIAGNOSE /S Rem lh C:\SB16\SB16SET /P /Q Rem - By Myself - C:\WINDOWS\clmode t6=0 t8=0 t1=2 t2=0 C:\WINDOWS\clmode m7 rem - By Windows Setup - lh c:\mouse\mouse rem - By Myself - lh C:\WINDOWS\COMMAND\doskey mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi) mode con codepage select=850 rem keyb sv,,C:\WINDOWS\COMMAND\keyboard.sys C:\TEAC\CORELCDX.COM /D:TEAC-CDI /XMSSIZE:0 rem /D:TEAC-CDI /M:15 /CACHE=2,2,2 /XMSSIZE=-1 rem c:\c&c\kaliiii\lsl rem c:\c&c\kaliiii\ppp List of Config.Sys device=C:\WINDOWS\himem.sys /testmem:off device=C:\WINDOWS\emm386.exe ram dos=high,umb ; DEVICEHIGH=C:\SB16\DRV\CSP.SYS /UNIT=0 /BLASTER=A:220 ; DEVICEHIGH=C:\SB16\DRV\CTSB16.SYS /UNIT=0 /BLASTER=A:220 I:5 D:1 H:5 ; DEVICEHIGH=C:\SB16\DRV\CTMMSYS.SYS FILES=40 device=C:\WINDOWS\COMMAND\display.sys con=(ega,,1) Country=046,850,C:\WINDOWS\COMMAND\country.sys LASTDRIVE = Z DEVICE = C:\TEAC\TEAC_CDI.SYS /D:TEAC-CDI Send your answers to: 101701,2611 AT CompuServe DOT Com Thanks!