<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/0c306debbf9d2c9dfcb5287b6a29bcb2"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-01-09T20:34:13"
  subject="Re: [Caml-list] Buffer.add error"
  prev="2003/01/9948de611fa2a519a7c4aa54234716d9"
  next="2003/01/1ca66d24a440edbd8e33b050a8ffc794"
  prev-in-thread="2003/01/fb29e8f1afbaa8deaeabffe306b2d071"
  prev-thread="2003/01/09b5be7521e7f17f067191e491e4a57a"
  next-thread="2003/01/13f7a2d121988f53dd4fbe7a9590e5e6"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Buffer.add error">
<msg 
  url="2003/01/035716795ff595f64ed101223a2b260d"
  from="Mikkel Christiansen &lt;mixxel@c...&gt;"
  author="Mikkel Christiansen"
  date="2003-01-08T09:53:07"
  subject="[Caml-list] Buffer.add error">
<msg 
  url="2003/01/f49ac3009c87068601aa48876ced916e"
  from="Basile STARYNKEVITCH &lt;basile@s...&gt;"
  author="Basile STARYNKEVITCH"
  date="2003-01-08T10:08:53"
  subject="[Caml-list] Buffer.add error">
<msg 
  url="2003/01/fb29e8f1afbaa8deaeabffe306b2d071"
  from="Eric C. Cooper &lt;ecc@c...&gt;"
  author="Eric C. Cooper"
  date="2003-01-08T17:03:05"
  subject="Re: [Caml-list] Buffer.add error">
<msg 
  url="2003/01/0c306debbf9d2c9dfcb5287b6a29bcb2"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-01-09T20:34:13"
  subject="Re: [Caml-list] Buffer.add error">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
&gt; &gt; So basically, you are hitting the limits of maximal string size (which
&gt; &gt; is 2^24 = 16777216 on 32 bits plateform).
&gt; &gt; 
&gt; &gt; Hence you cannot avoid it, except by switching to a 64 bits plateform.
&gt; 
&gt; Another possibility is to write a Buffer implementation on top of
&gt; 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

</contents>

</message>

