The following program fails under WIn32:
module Main(main) where
test 1 = [1]
test n = test (n-1) ++ test (n-1)
main = print (sum (test 15)) -- not enough memory (14: ok)
The Error message is:
getMBlocks: VirtualAlloc failed with: 8
(D:\EIGENE DATEIEN\TEST.EXE 1019) Exception: STATUS_ACCESS_VIOLATION
(D:\EIGENE DATEIEN\TEST.EXE 1019) Dumping stack trace to TEST.EXE.core
The Error 8 from VirtualAlloc means "Not enough memory".
Herbert
