Access Violation
Fer Castro
Ciudad de M?©xico
Hello All
I have a small MDI application based in the EmbedDesigner demo and the designer is into a MDI child form. Well, my application closes well until I create the designer window. I dont create the designer window and i close my application everithing closes well, but if I create my designer window and I close my application I get the AV error.
I have debugged my aplication and also I have destroyed the objects report and preview when I close my MDI child form, but i get the same error. One thing seems wierd is after i close my main form the debugger shows how the FR objects are destroyed and released.
To be honest i'm not sure if the FR is rising this error, but as I said, the error rises when I create the FR objects.
is there a sequence how the objects must be destroyed when are created in a MDI application?
Thanks and best regards
- Delphi XE
- FR 4.0
Fer Castro
I have a small MDI application based in the EmbedDesigner demo and the designer is into a MDI child form. Well, my application closes well until I create the designer window. I dont create the designer window and i close my application everithing closes well, but if I create my designer window and I close my application I get the AV error.
I have debugged my aplication and also I have destroyed the objects report and preview when I close my MDI child form, but i get the same error. One thing seems wierd is after i close my main form the debugger shows how the FR objects are destroyed and released.
To be honest i'm not sure if the FR is rising this error, but as I said, the error rises when I create the FR objects.
is there a sequence how the objects must be destroyed when are created in a MDI application?
Thanks and best regards
- Delphi XE
- FR 4.0
Fer Castro
Comments
The trick was include the - Designer.Close - in the OnClose procedure of the MDI Child, and if the main form is closed with the MDI Child created verify the existence of the object and call the onclose procedure.
Ready!!