Also, what other free compilers are there that supports win32 programming?
I'm getting this in mingw:
Code:
ct->freed = 1;
free(ct);
and then, later,
Code:
win32assert(!ct->freed, "already freed");
The assert code actually found ct->freed to be 1, even though it was supposed to be freed already. This is supposed to be impossible since at construction, freed is set at 0, and as soon as freed is set to 1, the ct struct is freed.
Could this be because of multithreading? Or is this the compiler's error? Or am I missing something?
edit : I am having a feeling that timeSetEvent and the called function is doing something at the same time that makes this thing happen..