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

Runtime error on closing application

Status
Not open for further replies.

marcello62

Technical User
Jun 19, 2006
42
NL
Hi there,

I'm maintaining a DLL written in Delphi 7. This DLL is compiled together with others to work together with an executable delivered by an external supplier. This executable is compiled from Delphi Sources but we don't have access to the sources. Every now and than this main program is updated, and we recompile our DLL's. Usually some small compile errors have to be fixed and it works. However, we don't get it working this time. We can correct and successfully recompile our sources, but when we close the app we get a runtime error:
'The instruction at ... referenced memory at ... The memory could not be read. click on Ok to terminate the program.'
This message re-appears 3 times (with different hexadecimal references), and than the following message appears:
'Runtime error 216 at ...'.
The strange thing is that the app does wat it has got to do!
But we can't leave our clients with these messages every time they shut down their apps.
The difficult thing here is that the first three errors are application errors thrown by the executable which we can't access the sources of.

Does anyone know what might be going on here? Any help will be greatly appreciated. Thanks.


 
Report them as bugs to your external supplier.

RE 216 is an EAccessViolation: an attempt to dereference nil or non-allocated virtual memory, or to write to a code page. It is a cumulative result of those first three messages.

There is nothing you can do on your end (from inside a DLL) to fix it outside of injecting code into the EXE, which would cause your clients' antivirus software to complain.

Sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top