• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

Visual C++ Error Code...

While working on the resource of visual c++ i often encounter an error saying "ACCESS VIOLATION" and having a number C2065 %26 C2057.
Often when i redo all that i had done to a previous backup of the same program and again link it, the error vanishes. But in the last few times, the said approach didn't seem to work.
Can anyone tell me the reason why this error occurs, the cause of it not appearing when i compile an identical copy of it, and how can i get rid of it...
My mail ID is - deviluee@iitr.ernet.in
you can mail me directly instead of posting your answers onto the sight. I am in real emergency as far as this is concerned...Please help me out...
  • 2
1 Solution
That looks like a typical phantom warning that can occur from numerous ways, such as; using source safe, incomplete builds, changing compiler directives, etc.  What I did to overcome this is write a batch file that removes *all* of the Visual C++ project files.  


del /s *.obj
del /s *.ncb
del /s *.pch
del /s *.pdb
del /s *.sbr
del /s *.opt

There are others, but this seems to get rid of inconsistencies in the build process
Forgot to mention that the project files that it removes are temporary and will not harm your project settings.
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now