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?