An error is prompted when closing the subwindow. Do you have such a problem?

Source: Internet
Author: User
An error is prompted when closing the subwindow. Do you have such a problem? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiBase/html/delphi_20061207133720244.html
When closing the subwindow, the following error is always prompted:
Access violation at address 00000008. Read of address 00000008

Project project1.exe raised exception class einvalidpointer with message 'invalid
Pointer operation '. process stopped. Use step or run to contine.

I added action: = cafree in the close event of the window, or the error message is displayed!

Check whether all objects have been released and the system prompts invalid pointers.

Agree upstairs

There are two global changes. I have released them! Should that be enough?

When the object is released, add form1: = nil to process your form or other objects as well.

Onclose:
Action: = cafree;
Form1: = nil;

Support upstairs ~

Are third-party controls used?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.