When i use free(), to free the memory allocated by ilCompressDX the application simply crashes on win32, on linux it
works fine, also valgrind doesn't find any invalid memory access on linux.
When using ifree() by including <IL/devil_internal_exports.h> it works fine, but this header file is only available in the full source package.
also it seems to work, when i add this:
static void* ILAPIENTRY AllocFunc(const ILsizei Size)
static void ILAPIENTRY FreeFunc(const void * CONST_RESTRICT ptr)
without ilSetMemory()... it crashes.
It looks like a Heap-Corruption, but i'm not sure where it happens as valgrind doesn't work on windows.
Log in to post a comment.