• 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...
0
the_skullin
Asked:
the_skullin
  • 2
1 Solution
 
SkoobyCommented:
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.  

Clean.bat:
==========

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
0
 
SkoobyCommented:
Forgot to mention that the project files that it removes are temporary and will not harm your project settings.
0
 
CleanupPingCommented:
the_skullin:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

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