Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7792695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:15:55+00:00 2026-06-01T22:15:55+00:00

I never noticed it in my program before, but for one of my TForm

  • 0

I never noticed it in my program before, but for one of my TForm I have a destroy event, which frees an object, is called or fired more than once. I don’t understand why.

procedure THTrendFrm.FormDestroy(Sender: TObject);
begin
  LogAlarm.Free;  <---Invalid Pointer Operation exception is raised
end;

Thanks in advance,

Update: Here is the FastMM message window right after my program is shutdown.
TAlarmMsg is the class from which LogAlarm is created.
enter image description here
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:15:57+00:00Added an answer on June 1, 2026 at 10:15 pm

    Thanks to David Heffernan and others. I found my problem and fixed it. The TForm in question was being created twice in my project file like so.

    Application.CreateForm(HTrendFrm, HTrend);

    That explains why destroy was called twice.

    Once I removed the duplicate line, it is shutting down fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I encountered an interesting thing today that I have never noticed before. It appears
I noticed that I had a project named RemoteSystemTempFiles which I never have created.
I have noticed that most Objective-C coders never use the self->ivar syntax when accessing
Never ran into this problem with jQuery before. I have the following: $(document).ready(function() {
Ive never heard of this before, and I have been coding in PHP for
I never did any serious Java coding before, but I learned the syntax, libraries,
I have started to program in Java SE recently, and I noticed from many
I have a program which stores plugins in multiple directories, like so: root/ core/bin/
I have the following line of code in my program which I took from
I never noticed the character ` (the one in the same key as tilde

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.