Hi Jeremy, This type of 'error' often occurs when you try to free an object that hasn't been created(!)I suggest that you check that you aren't trying to explicitly free one of the forms without checking to see that you have actually created it first.Paul.
----- Original Message ----- From: "Jeremy Grand" To: advanced_delphi@yahoogroups.com Subject: [advanced_delphi] Memory could not be "read" error when program ends Date: Fri, 27 Feb 2009 17:05:57 -0800 I have a couple of D7.1 apps that use some common code. The common code causes an error in one app but not the other. The error happens when the app exits. Im drawing a blank on what could it be about app1 that could cause a problem in form2. App2 does the same calls and does not show this problem. Googling the error message, it seems that this is a variation on access violation the program is trying to read a chunk of memory that it doesnt have rights to. I think the 2 apps have the same compiler settings. Ive looked at the parameters passed into form1 thinking there must be some difference, but nothing comes to mind. What else should I look at? App1 à form1 à form2 >the instruction at ---- referenced memory at 0x----. The memory could not be read. Error if and only if form2 is called. App2 à form1 à form2 The problem only happens when form2 is executed from app1. Source for form1 and form2 is shared between the 2 apps, ie, it is recompiled when the app is compiled, but the same physical files are compiled. Experience is something you don't get until just after you need it. -- _______________________________________________ Surf the Web in a faster, safer and easier way: Download Opera 9 at http://www.opera.com Powered by Outblaze