a problem of access violation
-
Hello everybody, In a new application, which a dialog box application i have a message error which appears and which tell me: " Unhandld exception in Fractal_v1_0.exe(MSVCRTD.DLL):0xC0000005:Access Violation" (Fractal_v1_0 is the name of my project!) So, i meet often the problem "Access Violation" caused by mistake in memory allocation for different pointers, but here i don't understand! so if someone could help me! thanks in advance for your answers gerald
-
Hello everybody, In a new application, which a dialog box application i have a message error which appears and which tell me: " Unhandld exception in Fractal_v1_0.exe(MSVCRTD.DLL):0xC0000005:Access Violation" (Fractal_v1_0 is the name of my project!) So, i meet often the problem "Access Violation" caused by mistake in memory allocation for different pointers, but here i don't understand! so if someone could help me! thanks in advance for your answers gerald
Please, build a debug version and run it under the debugger. Since it faults in the runtime library, it should be obvious why it fails when run in the debugger. Common reasons for access violations are str...() functions with null pointers or invalid strings (source or target, length wrong), memcpy/memmove with invalid source or target locations. Also overwrites of allocated memory or stack may cause this error.
int x=1, y=5;
x^=y^=x^=y; // whats the content of x and y now?
ClickHereForHelp();