From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba899e9612071bd2 X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: Re: General Protection Fault using Stream_IO Date: 1997/10/24 Message-ID: <877664729.64snx@jvdsys.nextjk.stuyts.nl>#1/1 X-Deja-AN: 284644842 Distribution: world References: <62n5h4$c2h$1@goanna.cs.rmit.edu.au> Organization: *JerryWare HQ*, Leiden, Holland Newsgroups: comp.lang.ada Date: 1997-10-24T00:00:00+00:00 List-Id: In article <62n5h4$c2h$1@goanna.cs.rmit.edu.au> ludowyk@yallara.cs.rmit.edu.au writes: >I am using Stream_IO to manipulate some graphics files, and use the read >function to read in a block of data. To do this I define my >Stream_Element_Array (about 400kb) then use: > >Read (File, My_Array, No_Of_Bytes, Start_Data); > >and it raises a General Protection Fault. It works alright for smaller files. There are several well known DJGPP effects that can cause this, if you can sent me an example program (not the data, please! :-) I will take a look at it, although I cannot promise when. In the meantime, if you get this exception when the data file is larger then 256K, try using the 'stubedit' program on your executable to increase its stack space (to, say, 512 Kb). -- Jerry van Dijk | Leiden, Holland -- Consultant | Team Ada -- Ordina Finance | jdijk@acm.org