comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <martin@krischik.com>
Subject: Re: Ada.Streams.Stream_IO.Stream_Access
Date: Tue, 16 Nov 2004 09:28:30 +0100
Date: 2004-11-16T09:28:30+01:00	[thread overview]
Message-ID: <8880854.x4B7rzzIl0@linux1.krischik.com> (raw)
In-Reply-To: 8dcfdb66.0411152016.280e5b7c@posting.google.com

Alex wrote:

> Hi,
> 
> I am having a problem with ADA Streams.
> 
> I need to access a file which is >2Gb and read data from it in chunks.
> 
> Firstly I was having problems getting the file size as
> Ada.Streams.Stream_IO.Size didn't seem to want to go over Integer'last
> (2*31)
> Worked fine for files up until the 2Gb range and then it went funny!
> 
> I had to call a 'c' routine (returned an Integer64...i.e. 2*63) to get
> the file size and decide how many chunks I wanted.
> 
> Ok, now I try to read from the huge file....and bang I am getting a
> Constraint error. Is this a case that I just can't use ADA Streams on
> files bigger then 2*31 bytes??
> 
> This is driving me nuts and I don't want to call 'c' routines again
> and spoil my ADA :)

I take it that you are not a AdaCore customer - otherwise you would not ask
here. However there is a communication channel for non customer as well:
"GNAT Discussion List" <gnatlist@lyris.seas.gwu.edu>. You might want to
raise the point there.

With Regards

Martin


-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com



  parent reply	other threads:[~2004-11-16  8:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16  4:16 Ada.Streams.Stream_IO.Stream_Access Alex
2004-11-16  8:06 ` Ada.Streams.Stream_IO.Stream_Access Marius Amado Alves
2004-11-16  8:28 ` Martin Krischik [this message]
2004-11-16 18:19   ` Ada.Streams.Stream_IO.Stream_Access Alex
2004-11-16 18:52     ` Ada.Streams.Stream_IO.Stream_Access tmoran
2004-11-17  9:31       ` Ada.Streams.Stream_IO.Stream_Access Martin Krischik
replies disabled

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