Categories
Mastering Development

C++ / objective c thread call losing parameter

Our code has just started crashing due to a thread calling a memory alloc function and losing the pointer to the memory pool. The pointer is initialised before the threads are started, but when the thread uses it to call the memory alloc code, it’s zero. In out init code we have poolptr = InitMemoryPool […]