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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this Visual Studio?

Status
Not open for further replies.

elziko

Programmer
Nov 7, 2000
486
GB
Several applications on my computer seem to run into errors when they shut down:

"The instruction at "An Address" referenced memory at "Another Address". The memory could not be 'read'.
Click OK to terminate the program
Click CANCEL to debug the program

I assume that because I get the option to go into the debugger this message is supplied as part of Visual Studio. However, these are not applications I have written and I dont want to be informed of these problems as I cannot solve them.

Is this part of Visual Studio 6?

Can I turn these off?

Will windows just ignore these errors since they never actually seem to cause any problems?

This also happens when there are script error occur on Web Pages!

I'm using Win2K if this makes any difference.

This is really (de)bugging me. Many Thanks

elziko
 
Thanks for your sugestion.

I killed MDM but I still get the same message. Do you think this is just a standard windows message? But then it cant be because Win2K doesn't come with the debugger?

Any other ideas??

elziko
 
OK, the answer to your question is both YES and NO . . . let me explain . . .

The error that you are getting


"The instruction at "An Address" referenced memory at "Another Address". The memory could not be 'read'.
Click OK to terminate the program
Click CANCEL to debug the program


is a general OS error (similar to GPFs and PageFaults) and there could be thousands of reasons why you are getting that error (including, possibly, the installation of Visual Studio).

Now, normally when you get this type of error message, you would simply get an OK button which you would click and then the process would most likely be destroyed. When you installed Visual Studion, you also installed Visual C++ (which comes with a debugger that can link into a running process). Now, when you get GPFs, Invalid Page Faults, and Illegal Instructions, you are presented with the option of debugging the code . . . don't do this, you'll get a headache (trust me . . . I have seen the code for Internet Explorer far too many times now). When this error comes up, simply click OK and be done with it. Additionally, when you installed Visual InterDev, you have been given the option of debugging Script Errors. The debug option in either case is just a tool, and NOT the cause of the original problem.
If you really feel the need to make the error message go away, you could uninstall Visual C++ (assuming of course that you are not using that language for work) and then the debugger will go away. Of course, this will not fix the real problem here . . . the Invalid Instructions error messages. This will only take away the ability to debug the code (unless of couse Visual C++ was installed incorrectly and was somehow causing the errors). Also, uninstalling Visual Interdev will remove the ability to debug script errors. But remember . . . unistalling these tools will not solve the actual problems.
If you really want to solve the errors altogether try the following . . .

1) Reinstall the latest service pack for your OS.
2) If 1 did not work, try and determine which
applications are consistently causing the error.
Reinstall those applications and then reinstall
the service pack,
- LAST RESORT -
3) IF neither 1 or 2 worked, and the problem is truly
unbearable, then rebuild the machine (i.e.
reinstall the OS)

One of these steps will resolve the actual error messages unless the application that is causing it was poorly written or if it is interfering with something else that you have installed on your system. These cases become much more complicated to resolve. - Jeff Marler
(please note, that the page is under construction)
 
Its just one application that really bothers me because I have writtten a program that runs it, then runs another program automatically. Trouble is the second program wont run properly until I click OK in the error dialog.

So, uninstalling VC++ wont get rid of the error message it'll just get rid of the option to debug yeah?

You see, I dont care about the error because it doesn't actually cause any problems in itself.

Right my last option: is there anyway to get the error message to OK itself. Maybe by having a bit of code waiting for this error and then doing a sendkeys enter? Or something like that. A bit of a bodge I know but I cant help the errors in someone elses application. I've tried reinsatlling SP etc. etc.

Many Thanks

elziko
 
I get the same message, especially when I'm on the Internet. It says a script error has occured, do you wish to debug. I to am running Win2K. The error is certainly a big bother to me even though as you say it does'nt hurt anything. If you figure it out let me know.

Thx
 
Personally I'm not too bothered about the internet, its just that there are so many sites out there that seem to be written by gibbons.

This wont solve my problem but as far as Internet Explorer is concerned there is an option to disable debugging.(Tools|Internet Options|Advanced|Browsing|Disable Script Debugging). You could try ticking this but I haven't tried it as I'm more concened with errors in an actual application.

Good Luck

elziko
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top