From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA01330; Wed, 8 Jan 2003 18:03:05 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA01156 for ; Wed, 8 Jan 2003 18:03:04 +0100 (MET) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id h08H33r20827 for ; Wed, 8 Jan 2003 18:03:03 +0100 (MET) Received: from 12-227-100-158.client.attbi.com ([12.227.100.158]) by ux9.sp.cs.cmu.edu id aa17889; 8 Jan 2003 12:02 EST Received: from ecc by stratocaster.home with local (Exim 3.36 #1 (Debian)) id 18WJbK-0007Tx-00 for ; Wed, 08 Jan 2003 12:02:46 -0500 Date: Wed, 8 Jan 2003 12:02:46 -0500 To: caml-list@inria.fr Subject: Re: [Caml-list] Buffer.add error Message-ID: <20030108170246.GC28695@stratocaster.home> Mail-Followup-To: caml-list@inria.fr References: <3E1BF50A.7070401@cs.auc.dk> <15899.63661.698094.412051@hector.lesours> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15899.63661.698094.412051@hector.lesours> User-Agent: Mutt/1.4i From: "Eric C. Cooper" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Jan 08, 2003 at 11:08:45AM +0100, Basile STARYNKEVITCH wrote: > >>>>> "Mikkel" == Mikkel Christiansen 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