Visual C++ Error Code...

Posted on 2003-03-10
Medium Priority
Last Modified: 2010-04-17
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...
Question by:the_skullin
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

Skooby earned 300 total points
ID: 8104335
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

Expert Comment

ID: 8104344
Forgot to mention that the project files that it removes are temporary and will not harm your project settings.

Expert Comment

ID: 9447236
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Introduction to Processes

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question