Hi Sam,
Could you forward this to the group.
If you are running VC/C++ in debug mode, there seems to be a bug in the debug memory allocation. There is a counter which keeps track of the number of malloc requests and compares it to -1 and if it is ever equal to that, it breaks into the debugger with a useless message. Well you can imagine that if you run for a long time and do a lot of mallocs, that eventually the counter will wrap around to -1 and of course that is exactly what happened to me. Just be aware of it if you run in debug mode and seem to crash in heap_alloc_dbg. Presumably this would not be a problem in non-debug mode.
Randy