Page 2 of 2

designDialog() crashes out

Posted: Fri Jan 21, 2011 10:33 am
by brianj774
Oh ho ho!

I found that, when I leave the minimalistic module as is, and then I remove the initializate() code from my main app, THEN I get the problem.

But, for now, if I leave the

Code: Select all

StiDesignerFx.initialize();
in my main app, then remove it from the module, everything seems to work out correctly.

Is that then, what should happen in a modular app? SHould we initialize the Designer and Viewer as part of the main apps init processing?

designDialog() crashes out

Posted: Mon Jan 24, 2011 8:18 am
by Vladimir
Hello,

This method has no code inside. It should be called only once in the main module during initialization of the project. Likewise, this method is not necessary if on any form is a visual DesignerFx component.

This method is intended for that the compiler added the DesignerFx code to the compiled application module, because if DesignerFx never declared, the compiler will assume that it is not used anywhere.

Thank you.

designDialog() crashes out

Posted: Mon Jan 24, 2011 8:22 am
by brianj774
Excellent,

Thanks for the clarification. I understand it better, now.

designDialog() crashes out

Posted: Mon Jan 24, 2011 9:13 am
by Andrew
We are always glad to help you.

Thank you.