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 VAA07780; Thu, 9 Jan 2003 21:34:13 +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 VAA07700 for ; Thu, 9 Jan 2003 21:34:13 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h09KYCr24629 for ; Thu, 9 Jan 2003 21:34:12 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA07841 for caml-list@inria.fr; Thu, 9 Jan 2003 21:34:12 +0100 (MET) Date: Thu, 9 Jan 2003 21:34:12 +0100 From: Xavier Leroy To: caml-list@inria.fr Subject: Re: [Caml-list] Buffer.add error Message-ID: <20030109213412.B7671@pauillac.inria.fr> References: <3E1BF50A.7070401@cs.auc.dk> <15899.63661.698094.412051@hector.lesours> <20030108170246.GC28695@stratocaster.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20030108170246.GC28695@stratocaster.home>; from ecc@cmu.edu on Wed, Jan 08, 2003 at 12:02:46PM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > 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. But you'd still hit the limit on string length when extracting the contents of the buffer with Buffer.contents... - Xavier Leroy ------------------- 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