I have a .exe and that dynamically loads a .dll using LoadLibrary(). Memory is allocated in the .exe and deallocated in the .dll. However, some of the deallocations assert in CrtIsValidHeapPointer() for debug builds.
What exactly am I doing wrong and what can I do about it? I've made sure that the compiler options are the same for both the .exe and the .dll. I've made sure that I'm deallocating correctly. I think it has something to do with the heaps being separate between the .exe and the .dll. I'm really stuck here...please help.