Allocating memory for an object on one thread and deleting it on another thread? I thought that was ok and that thread share heap space?

Maybe this is not the source of the problem and I have look deeper.