Solved

The memory could not be "read" issue

Posted on 2006-10-31
3
174 Views
Last Modified: 2010-04-30
Hi everyone -

I have some printer code that I found on the net to query the status of a printer.  Some of our users are experiencing an error where it says "The instruction at ... referenced memory at ...  The memory could not be "read"."  This doesn't happen everytime, just once in a while.  I've isolated the problem to the printer status code.  I was wondering if there are other resources to get some more information on this error like some log files or event messages available on the system to look at, or am I forced to run a debug version to isolate the exact line of code?

Thanks!
0
Comment
Question by:sandr5
3 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 125 total points
ID: 17843942
This could be a printer driver error. Try to see if it's one particular type of printer.
0
 
LVL 1

Author Comment

by:sandr5
ID: 18027804
Hi everyone -
Didn't have time to check if it was one particular printer - I will have to keep that in mind for next time.  Sometimes it can be hard to get useful technical information from users.  At any rate, I did a hack temporarily to bypass the printer check based on a flag in a config file for those users experiencing the issues.  It's a bandaid, but it works for now.
Thanks!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

749 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