main.prg DO FORM frmMain &&My top level form READ EVENT frmMain.DESTROY() ** Place in DESTROY to let user to exit application just click on the "X" button CLEAR EVENTIt work fine at first. However, I found that my application is not released from memory after I have a Login screen(frmLogin) in my application. I issue frmMain.RELEASE in frmLogin.cmdCancel.CLICK() terminate my application if user cancel the login.