caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* possible bug in DynArray module of ExtLib
@ 2007-03-31 16:19 Dário Abdulrehman
  0 siblings, 0 replies; only message in thread
From: Dário Abdulrehman @ 2007-03-31 16:19 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

The first of the following functions causes a "Fatal error: exception
Out_of_memory", while the second works fine.
This error seems to occur when creating large arrays past 2 million and
something entries.
Anyone noticed this error?

Thanks.

  let test_dynarray1 () =
    let a = DynArray.create () in
    for i = 1 to 2817131 do
      DynArray.add a i
    done

  let test_dynarray2 () =
    let a = DynArray.make 2817131 in
    for i = 1 to 2817131 do
      DynArray.add a i
    done


-- 
Dário Abdulrehman

[-- Attachment #2: Type: text/html, Size: 748 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-31 16:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-31 16:19 possible bug in DynArray module of ExtLib Dário Abdulrehman

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).