Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Possible bug in DynArray module from ExtLib
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dário_Abdulrehman <dario.rehman@g...>
Subject: [Caml-list] Possible bug in DynArray module from ExtLib
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 with more than 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