Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Buffer.add error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Eric C. Cooper <ecc@c...>
Subject: Re: [Caml-list] Buffer.add error
On Wed, Jan 08, 2003 at 11:08:45AM +0100, Basile STARYNKEVITCH wrote:
> >>>>> "Mikkel" == Mikkel Christiansen <mixxel@cs.auc.dk> writes:
>     Mikkel> When generating a rather large string I get the following
>     Mikkel> error:
>     Mikkel>     Fatal error: exception Failure("Buffer.add: cannot
>     Mikkel> grow buffer")
> ... 
> So basically, you are hitting the limits of maximal string size (which
> is 2^24 = 16777216 on 32 bits plateform).
> 
> Hence you cannot avoid it, except by switching to a 64 bits plateform.

Another possibility is to write a Buffer implementation on top of
Bigarrays.  That way your application wouldn't have to change much.

-- 
Eric C. Cooper          e c c @ c m u . e d u
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners