CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Best way to free a dialog

by esthermann » 29 Dec 2014 20:31

I am looking into the resource management in my application. I would like to be able to create the dialogs when I need them and destroy them fully when I am no longer using them.

Currently I am using the IWFrameRegion->Visible = false; to exit out of dialogs.

Does that function destroy the dialog and free the memory that was used by it? If not, how can I best accomplish destroying the dialog?


TIA

Esther Mann
esthermann
 
Posts: 171
Joined: 22 Jun 2012 11:17

by Jorge Sousa » 30 Dec 2014 10:28

Hi Esther

No, the Visible doesn't free the dialog.

You have to trap the event Dialog.JQDialogOptions.OnClose.OnEvent and call WebApplication.ReleaseForm. Despite the name, ReleaseForm can be used with any component, including Dialogs or Frames, per instance.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQDialogEx

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.