Hi

Below is a piece of code that gnerates this message when executing:

Entered a primitive array (of data)---this shouldn't happen!

main = do
        ...
        pidlist <- put pjsl ([1..5000]::[Int])
        l <- (get pjsl pidlist):: IO [Int]
        print (l::[Int])
        ...


put & get are C routines that write values to disk.

If the list is 50 elements, it works ok and the list is printed fine.

When it is 5000 elements it writes ok, and fails reading.

I haven't tried it for intermediate sizes.


-- 
-------------------------------------------------------------------------------
Fermin J. Reig
PhD student, Department of Computing Science, University of Glasgow
http://www.dcs.gla.ac.uk/~reig

Reply via email to