Jump to content

free forms doesn't destroy when refreshing the browser


SIRE Software

Recommended Posts

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).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...