What is going on?! I fixed some structs, extensive amount of search/replace in my code. Then i finish and everything compiles fine, but the program crashes immediately.
This is my main function:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){
exit(1);
In all logics it shouldnt crash, since im not executing any functions. only WinMain(), which does nothing!
What the hell? And why its not giving me the line numbers anymore? its giving the location in the external include files, not the line in MY code.
Also i noticed my EXE size is now 5 times smaller than it was before, which also doesnt make sense, looks like it stops compiling at some point, but still says its compiled!
Edit: this is what i get from the error:
File: ... \include\xstring
Line: 1084
Expression: Invalid null pointer
When i run it in non-debug mode i get First-chance exception at 0x00413a95 ....: 0xC0000005: Access violation reading location 0x00000000.
--
Edit2: reason found: I initialized a global struct in the following way: const StructName VarName = {1, 1, 1};
but the StructName Struct was changed.