I'm experiencing a problem with the default static C-library in Pelles C, but the dynamic pocrt.lib works just fine (except that i need a static library)...
The problem is the following:
1. In the main thread I check to see which of two different UI's should be displayed.
2. Create new thread from which the UI should be displayed calling IsGUIThread(TRUE) etc..
3. In the newly created thread I use CreateWindow to create the UI - but it crashes upon calling CreateWindow!
The info I've gotten from Olly is:
EIP = 7C9105F8 in ntdll.
Lasterror is set to ERROR_INVALID_PARAMETER.
"Access violation when reading 0x00000010"
PellesC Debugger says:
That the last thing in the call stack is a call to RtlAllocateHeap() + 24.
Don't know if there's a new 32-bit C-library in the 5.0 version, but I thought it might be a good idea to report it. The funny thing is still that the program works perfectly when linking to pocrt.lib - but I can't use a dll in my project.