I am very upset about the failure of my application in Release mode in Windows 7.
In the main function, I deleted everything:
int main(int argc, char **argv, char **envp) {
return (0);
}
But I have many directives, variables, and functions defined outside of the main functions.
It only crashes in Release mode in Windows 7. Debug mode in Windows 7 is fine; The debug and release mode in Windows XP is good.
Since I cannot debug, I do not.
Error:
Unhandled exception at 0x00dc21ca in MyApp.exe: 0xC0000005: Access violation reading location 0x8496a9bb.
Assembly line:
00DC21CA mov eax,dword ptr [edx+0Ch]
This is so crazy. Please help.
Peter
PS: If I deleted everything that I defined outside the main one, then everything is in order.
PS:
char* AllocArgsMemory()
{
return (char*)malloc(2);
}
source
share