Access Violation when freeing a child form
Posted on 2002-07-29
I'm writing an MDI app. When the child forms are closed I want them to close rather than be minimised, so I've added
Action := caFree;
to the form's OnClose event. Now whenever the child form is closed I get
Project Calls.exe raised exception class EAccessViolation with message 'Access violation at address 00000000. Read of address 00000000'. Process stopped etc
If I don't add the action := cafree line the form minimises and I don't get an error.
Thanks for your help.