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

reference memory could not be read

Status
Not open for further replies.

michaenh

Programmer
Aug 7, 2002
205
NO
Hi Delphi Experts.

I have a liltle problem.
When I close my application with X button I sometimes get this msg error:
The instruction at "0x5d321871 reference memory could not be "read"

Any clue why this happens sometimes(rarely)...
 
In general, I'd advice you to study exactly when this happens, extract conclusions about the why based on this information.

Try out different things, play with your application. Especially try the things one normally would not do, as these situations are often the ones that generate the unpredicted bugs.

Once the error happens, start your application again and do exactly the same thing - does it generate the error again?

If so, you should now at least have some general idea as to where your code may be wrong.
 
Thanks for your reply.

I will take a deeper look...

;)
 
Hi there.

I just want to say that I think I have solved the problem.
I have mutiple dll's. I load my libraries on the fly and unfortunately I had forgotten to add ShareMem in one of the Dlls uses clause.

thanks :)


 
Don't you just hate XPs friendly error messages? Telling you that the address could not be "read" or "written" like those words were slang for what's happening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top