Access Violation

Fer CastroFer Castro Ciudad de M?©xico
edited 6:59AM in FastReport 4.0
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

Comments

  • Fer CastroFer Castro Ciudad de M?©xico
    edited June 2013
    Done

    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!!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.