SIRE Software Posted March 6, 2021 Share Posted March 6, 2021 Good morning! I have an issue when refreshing the browser, some forms (free forms) doesn't destroy, i would like to know if there is a way to free and nil forms before refreshing the browser or even at the mainModule create event ? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted March 6, 2021 Share Posted March 6, 2021 2 hours ago, Victor Dominguez said: Good morning! I have an issue when refreshing the browser, some forms (free forms) doesn't destroy, i would like to know if there is a way to free and nil forms before refreshing the browser or even at the mainModule create event ? Hi, try to create form by TmyForm.Create(Application) not TmyForm.Create(nil) or TmyForm.Create(Self). Quote Link to comment Share on other sites More sharing options...
SIRE Software Posted March 6, 2021 Author Share Posted March 6, 2021 1 hour ago, irigsoft said: Hi, try to create form by TmyForm.Create(Application) not TmyForm.Create(nil) or TmyForm.Create(Self). Hello! thanks for taking the time for replying! I'm creating forms like this: form = TForm.create(UniApplication); form.show; but if the form in opened and i refresh the page when i try to open the form again i get an access violation error. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted March 6, 2021 Share Posted March 6, 2021 4 minutes ago, Victor Dominguez said: Hello! thanks for taking the time for replying! I'm creating forms like this: form = TForm.create(UniApplication); form.show; but if the form in opened and i refresh the page when i try to open the form again i get an access violation error. It's ok, do You enable MyForm.FreeOnClose? If User use Browser Refresh button, my session will close and new will created. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.