Solved

Access Violations when closing

Posted on 1997-06-04
7
183 Views
Last Modified: 2010-04-06
In two of my Applications (totally seperate apps, different data,
everything) when you hit the close button and application error occurs.

ie

Access violation at 0x4be41a49 read address 0x388b5708
83 3a 00 74 63 e8 39 10 00 00 64 88

This errors occurs in Delphi and at Runtime. The Delphi Find Error does not
find the code like that causes this problem (so possibly it is occuring in
the VCL).

Does anyone have any ideas?
0
Comment
Question by:gdj
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 1

Accepted Solution

by:
bcrotaz earned 100 total points
ID: 1336806
Are you using your own components?
Do you create any objects?
If so you must free them before closing (in the OnDestroy handler)

Give me some more detail and I'll help more.

Bryan
0
 
LVL 4

Expert Comment

by:StevenB
ID: 1336807
Oops...
of course.
Silly me.
0
 
LVL 1

Expert Comment

by:bcrotaz
ID: 1336808
Everything I create I am Destroying (or Free ing, I've tried both).  

One strange thing I have noticed, on a 486 or a slow Pentium the problem does not occur!

0
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.

 

Author Comment

by:gdj
ID: 1336809
 Does the error occur on the same line of code every time? If so why not paste it and the surrounding lines up and it may shed some more light.

  Steven.
0
 
LVL 4

Expert Comment

by:StevenB
ID: 1336810
The error occurs after all of my code has all been processed.
0
 

Author Comment

by:gdj
ID: 1336811
If you have written some thing like:
mainform.destroy or mainform.free than this might be the problem.
Generally, instead, you should call mainform.Release.
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1336812
Thanks - but what did I say?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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