Problem with designer when created on a second form

When I create a new C++ app and create the designer on the mainform with: frxReport1->DesignReportInPanel(DesignerSheet);
I have no problem.
But when I create a new form with: TForm2* f = new TForm2(this);
and I have the designer on that form, it will be created ok, deleted ok, but when shutting down the application, I'm getting access violations.

How do I resolve this?

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.