Via: uk.ac.sheffield-hallam; Sat, 9 Apr 1994 12:26:22 +0100 From: A DOT K DOT Heath AT sheffield-hallam DOT ac DOT uk (Andy Heath) To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp) Subject: go32 problem Date: Sat, 09 Apr 94 11:48 Sender: A DOT K DOT Heath AT sheffield-hallam DOT ac DOT uk PLease can anyone advise me about the following. I'm not on the mailing list so if you can help please reply to my email address. I'm using djgpp 1.11 etc. on a 486 PC with Windows 3.1. The pc has some EMS and some XMS. My c progs need to use pieces of (virtual) memory to manipulate 16 bit images, each piece being 524288 bytes. The problem I'm encountering occurs when all of the following elements are present 1) the prog is running in a dos box (ie from windows 3.1) AND 2) there's an array of unsigned char or similar of size 524288 which is local to a function. (eg declared inside main). In these circumstances I get a graceful refusal to continue (reproduced below). The problem goes away if I don't use windows or if I make the array global or if I use malloc to get the space. Obviously I can get round it but it's annoying because I need to run the same progs on a sun. Is this a known problem ? This is what happens ------------------------------------------------------------- go32 version 1.11.maint4 Copyright (C) 1993 DJ Delorie General Protection Fault at eip=11e6 eax=fffd1cb0 ebx=00051cc4 ecx=00053010 edx=fffd1cb0 esi=00000000 edi=00000000 ebp=00051cb0 esp=fffd1ca8 cs=bf ds=b7 es=b7 fs=b7 gs=cf ss=c7 cr2=00001fe5 Call frame traceback EIPs: 0x000011e6 ----------------------------------------------------------------- Thankyou in advance to anybody who gives this attention Andy Heath