comp.lang.ada
 help / color / mirror / Atom feed
* General Protection Fault using Stream_IO
@ 1997-10-23  0:00 Tristan Ludowyk
  1997-10-23  0:00 ` Tristan Ludowyk
  1997-10-24  0:00 ` Jerry van Dijk
  0 siblings, 2 replies; 3+ messages in thread
From: Tristan Ludowyk @ 1997-10-23  0:00 UTC (permalink / raw)



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.

I can't work out what is going wrong, since it has been working in the past.

Thanks for any advice, Tristan.
-- 
   _/_/                Tristan Ludowyk              ____TTTc____/|   \_\_\_\_
  _/_/_/    RMIT Comp.Sys.Eng/Comp.Sci - 1st year    (_u|||_o_) \|    \_\_\_
 _/_/_/_/   Email: ludowyk@yallara.cs.rmit.edu.au       ^^^            \_\_
 Anyone who is not shocked by quantum theory has not understood it - Niels Bohr




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: General Protection Fault using Stream_IO
  1997-10-23  0:00 General Protection Fault using Stream_IO Tristan Ludowyk
@ 1997-10-23  0:00 ` Tristan Ludowyk
  1997-10-24  0:00 ` Jerry van Dijk
  1 sibling, 0 replies; 3+ messages in thread
From: Tristan Ludowyk @ 1997-10-23  0:00 UTC (permalink / raw)



Sorry, I should have mentioned that I'm compiling with gnat 3.07 for dos.


Tristan Ludowyk (ludowyk@yallara.cs.rmit.edu.au) wrote:
: 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.
: 
: I can't work out what is going wrong, since it has been working in the past.
: 
: Thanks for any advice, Tristan.
: -- 
:    _/_/                Tristan Ludowyk              ____TTTc____/|   \_\_\_\_
:   _/_/_/    RMIT Comp.Sys.Eng/Comp.Sci - 1st year    (_u|||_o_) \|    \_\_\_
:  _/_/_/_/   Email: ludowyk@yallara.cs.rmit.edu.au       ^^^            \_\_
:  Anyone who is not shocked by quantum theory has not understood it - Niels Bohr

-- 
   _/_/                Tristan Ludowyk              ____TTTc____/|   \_\_\_\_
  _/_/_/    RMIT Comp.Sys.Eng/Comp.Sci - 1st year    (_u|||_o_) \|    \_\_\_
 _/_/_/_/   Email: ludowyk@yallara.cs.rmit.edu.au       ^^^            \_\_
 Anyone who is not shocked by quantum theory has not understood it - Niels Bohr




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: General Protection Fault using Stream_IO
  1997-10-23  0:00 General Protection Fault using Stream_IO Tristan Ludowyk
  1997-10-23  0:00 ` Tristan Ludowyk
@ 1997-10-24  0:00 ` Jerry van Dijk
  1 sibling, 0 replies; 3+ messages in thread
From: Jerry van Dijk @ 1997-10-24  0:00 UTC (permalink / raw)



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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-10-24  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-23  0:00 General Protection Fault using Stream_IO Tristan Ludowyk
1997-10-23  0:00 ` Tristan Ludowyk
1997-10-24  0:00 ` Jerry van Dijk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox