I am creating a dialog box to report information about some processes and once the information is shown I want to release the resources for the dialog box. I use the show method to display the dialog after creation then I use hide to hide the dialog when the OK button is pressed. When the OK button is pressed I want the dialog to be released from memory not just hidden, how do I do this?

Thanks
Jerry