Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AV error

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I have an application that is showing an access violation at address 00461C58 but I can't run the application on my machine and I can't install the IDE or compiler on the machine the app is running on.

The app has been vary stable for about a year but now shows this one error.

How can I find what this is pointing to on the machine I compiled it on?

fergmj
 
I've done this, I create a version of the program with output to a file or to a memo field (if one is already on the screen), then in the code I output to the file or memo that the program is or has executed a section of code. I run the test program on the machine in question until it crashes. Then I find out which section of code is problematic. Sometimes I have to narrow the search down but putting the error output into smaller and smaller sections of code (and rerunning the program) until I find what is wrong. Just make certain you have a backup of the original code so you don't have to remember where you put all your test code.

The biggest drawback to this method is the possiblity of introducing more errors as you do your output. Another problem is if the error is related to a hardware memory problem then you may find that the program crashes at different sections each time it is run.

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top