# Problem with forms they disapear

**URL:** <https://forum.servoy.com/t/problem-with-forms-they-disapear/17727>\
**Category:** Classic Servoy\
**Created:** [January 13, 2014, 4:12pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727 "2014-01-13T16:12:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DEK4](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DEK4](https://forum.servoy.com/u/DEK4)\
**Post date:** [January 13, 2014, 4:12pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/1 "2014-01-13T16:12:46Z")

</div>

Hello, I noted a problem with Servoy.

When my solution start I open a form with an tabPanel where I put all my forms.  
I have the “start” form that contain the menu, when i start to open a lot of forms my principal Start form, and also others forms, disaper.  
I can see it on the form list but when I open the principal form that contain panels with sub forms I can see only one blank screen.

Is there any way to block servoy to delete my forms? It happen also when i have an edited foundset connected to a form, it just disapear.

Any suggestion?

Can i refresh the form?

thanks

---

<div class="post-metadata">

**Author:** ![DEK4](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DEK4](https://forum.servoy.com/u/DEK4)\
**Post date:** [January 30, 2014, 4:58pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/2 "2014-01-30T16:58:52Z")

</div>

UP

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [January 30, 2014, 5:30pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/3 "2014-01-30T17:30:40Z")

</div>

Are you loading the same form more than once?

---

<div class="post-metadata">

**Author:** ![DEK4](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DEK4](https://forum.servoy.com/u/DEK4)\
**Post date:** [January 30, 2014, 5:35pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/4 "2014-01-30T17:35:07Z")

</div>

No, every form is loaded one time only

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [January 30, 2014, 5:50pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/5 "2014-01-30T17:50:04Z")

</div>

Break it down and add one form to the load process at a time. I’m willing to bet you somehow use the same form twice somewhere. Even if not, this process will narrow the issue down.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 3, 2014, 9:12am UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/6 "2014-02-03T09:12:22Z")

</div>

If you open up a lot of forms that older forms that are not used for a while are unloaded  
When you show them again they should just be reloaded again (onload called)

Servoy can’t just keep all forms in memory that would kill the client or server.

You can control it a bit, but be careful with that, that is keeping a form reference to a global (array) variable. so scopes.globals.mykeptform = forms.myform;

---

<div class="post-metadata">

**Author:** ![DEK4](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DEK4](https://forum.servoy.com/u/DEK4)\
**Post date:** [February 3, 2014, 11:20am UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/7 "2014-02-03T11:20:24Z")

</div>

Thanks for answers.

> jcompagner:  
> If you open up a lot of forms that older forms that are not used for a while are unloaded  
> When you show them again they should just be reloaded again (onload called)
> 
> Servoy can’t just keep all forms in memory that would kill the client or server.
> 
> You can control it a bit, but be careful with that, that is keeping a form reference to a global (array) variable. so scopes.globals.mykeptform = forms.myform;

when servoy destroy my form is there any way to call any methods? onUnLoad or something similar that i can intercept?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 3, 2014, 12:18pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/8 "2014-02-03T12:18:04Z")

</div>

onUnload is called then yes.

---

<div class="post-metadata">

**Author:** ![DEK4](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DEK4](https://forum.servoy.com/u/DEK4)\
**Post date:** [February 3, 2014, 12:24pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/9 "2014-02-03T12:24:03Z")

</div>

so…if I do something like

```auto
function onUnload(event) {
     return false
}

```

if I interrupt the unLoad function?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 3, 2014, 1:09pm UTC](https://forum.servoy.com/t/problem-with-forms-they-disapear/17727/10 "2014-02-03T13:09:17Z")

</div>

no that will not work. Because onUnLoad is already processed when it is being destroyed.  
in onUnload you could store state and that kind of stuff that you can reuse again in onLoad
