It's driving me crazy (ok I was already a little crazy before I started Amiga coding but there you go).
My other problem is that I can't really debug it (or at least step-through the code).
The only thing I know so far for sure is:
1) Replacing all the calls from calloc to AllocMem(FAST_MEM) gets it working.
2) The code seems to be run though a number of calloc statements before it blows up (reboots the computer!).
Other people must have had this issue.....I can't be that unlucky
The code doesn't check the return values from the calls to calloc/malloc.