We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Access Violations when closing

gdj
gdj asked
on
Medium Priority
201 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?
Comment
Watch Question

Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT

Commented:
Oops...
of course.
Silly me.

Commented:
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!

gdj

Author

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.
CERTIFIED EXPERT

Commented:
The error occurs after all of my code has all been processed.
gdj

Author

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.
Thanks - but what did I say?
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.