PDA

View Full Version : EzDefineDialog failing second time it loads



devinrader
10-17-2003, 03:16 PM
I am using EzDefineDialog to load a custom dialog from ISUSER.

The dialog works perfectly the first time it loads. If I hit the Back button to navigate to the previous dialog, then hit the Next button to move forward again to my custom dialog, EzDefineDialog return -1 (Dlg_Err)

Is there any way to find out what is causing the error?



nResult = EzDefineDialog(szDialogName, ISUSER, "DatabaseLocation", 0);


I am doing a registry read and populating a ComboBox in the DLG_INIT event each time, but thats it.

This is an InstallScript MSI project BTW.

Devin

RichAquino
10-17-2003, 06:47 PM
Hi Devin,

Are you calling EndDialog and ReleaseDialog when you close your dialog?

Rich

devinrader
10-20-2003, 09:03 AM
yup..that was the problem :p