Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

Access Violations when closing

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
gdj
Asked:
gdj
  • 2
  • 2
  • 2
  • +1
1 Solution
 
bcrotazCommented:
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
 
StevenBCommented:
Oops...
of course.
Silly me.
0
 
bcrotazCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
gdjAuthor Commented:
 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
 
StevenBCommented:
The error occurs after all of my code has all been processed.
0
 
gdjAuthor Commented:
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
 
ronit051397Commented:
Thanks - but what did I say?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now