caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re: [Caml-list] error opening large file
@ 2002-01-11 23:32 Florian Douetteau
  2002-01-12  0:02 ` David Monniaux
  0 siblings, 1 reply; 7+ messages in thread
From: Florian Douetteau @ 2002-01-11 23:32 UTC (permalink / raw)
  To: caml-list


The maximal positive integer of type 'int' is about 2.1E9
I guess the overflow causes the problem.


-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Caml-list] error opening large file
@ 2002-01-11 21:02 Garry Hodgson
  2002-01-11 21:51 ` Olivier Andrieu
  2002-01-15  9:56 ` Xavier Leroy
  0 siblings, 2 replies; 7+ messages in thread
From: Garry Hodgson @ 2002-01-11 21:02 UTC (permalink / raw)
  To: ocaml


i get the following error when i open a large file (2561435180 bytes):

   let chan = open_in( "com.zone" );;
   Uncaught exception:
   Sys_error
   "com.zone: Value too large for defined data type".

is there a 2G file size limitation?  if so, why?
i found the same bug in erlang, though C is ok with it.

this is on redhat 7.1 running ocaml 3.02

thanks

-- 
Garry Hodgson                   Let my inspiration flow
Senior Hacker                      in token rhyme suggesting rhythm
Software Innovation Services    that will not forsake me
AT&T Labs                          'til my tale is told and done.
garry@sage.att.com
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


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

end of thread, other threads:[~2002-01-23 15:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-11 23:32 [Caml-list] error opening large file Florian Douetteau
2002-01-12  0:02 ` David Monniaux
  -- strict thread matches above, loose matches on Subject: below --
2002-01-11 21:02 Garry Hodgson
2002-01-11 21:51 ` Olivier Andrieu
2002-01-15  9:56 ` Xavier Leroy
2002-01-16  8:53   ` Florian Douetteau
2002-01-23 15:49     ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).