ANOQ of the Sun wrote: > I've added a message at every VirtualAlloc and VirtualFree. > It seems to fail after the messages: > Shrinking stack to size 262144 > unable to VirtualFree memory at 5ef0000 Just a thought - maybe VirtualAlloc and VirtualFree cannot handle the large "gap" between the stack and the heap? Cheers -- http://www.HardcoreProcessing.com