Does operator new allocate on THREAD heap?
- by Jonas Byström
My problem seems to be this: heap data allocated by one thread (that later dies) seems to die as well. As so:
Thread X: starts
Thread Y: starts
Thread X: ptr = new some bytes
Thread X: dies
Thread Y: tries to use ptr - and crashes!
So far, I've only seen this problem on Darwin (Mac OS 10.5 and 10.6), but haven't tried more other platforms than…