How to solve access violation writing location error?
No, you should not. “Hello world” is a constant string literal, you need to allocate memory using malloc() in C, or new in C++ if you want memory you are free to modify.
No, you should not. “Hello world” is a constant string literal, you need to allocate memory using malloc() in C, or new in C++ if you want memory you are free to modify.
Your problem is here: You’re not creating an instance of ElemAlg, so you’re calling a member function on an uninitialized pointer. Because the member function you are calling isn’t virtual the compiler won’t have to do any runtime lookup, which is why the call goes to GetQuiz. However, the this pointer will be garbage (as ea is uninitialized), so the moment … Read more
Am working on VC++ Console Application. This application sends a file from Appdata\Roaming folder for a period of time. What happens is am getting this Crash error : Could anyone please help me to resolve this issue