This has been stumping me for a bit. I have a Class written in C++.
Everything works fine.
Next, I add function void A();
to t开发者_开发问答he header file and run, It still works fine.
void ClassName::A() {
}
I am running using Code::Blocks on Windows, also strange but the permissions of the output directory are all changed after the crash and the folders/files are all set to Read Only.
Note: there are NO references/uses of the function elsewhere in the code, only the definition. I am interested in what sort of bug could cause this kind of runtime error? Possibly a memory leak somewhere?Usually such an error is the result of memory corruption somewhere in the program.
Sounds like you have a wild pointer somewhere.
精彩评论