mdelfede Messages: 1307 Registered: September 2007
Ultimate Contributor
cbpporter wrote on Mon, 23 January 2012 21:22
....
And I am using some DLLs. Should I use the USE_MALLOC flag?
That's almost for sure the problem.
I'm using OCE library which does custom allocation and has *many* allocation bugs that clashes completely with Upp custom allocators.
If your DLL allocates something and you deallocate it in Upp, or the way around, you'll have problems for sure.
You'll have problems anyways if your DLL uses custom allocation different from malloc()/free()... the right approach would be to *not* manage the same memory on both sides, which is quite difficult sometimes.