Hi,
I read somewhere in one of the topics on the forum that Servoy caches forms, up to 25 or 50 forms. After that, forms are removed from the cache, as to keep the memory usage to an acceptible level. When the form is needed again, it will be reloaded.
Now, I was wondering: will the onLoad method for that form be fired again in the situation that is was loaded before, then thrown out of the cache and then has to be loaded again?
I do not have an immediate issue with it now, but I could think or situations where firing the onLoad method again could result in undesired behaviour, because of the content of the onLoad method.
Just thinking hereā¦
Paul
yes the onLoad method will be triggered again
as does the onShow method with the first time boolean argument to true.
if you have an example of what can go wrong then. please post this. I will look if we can fix that somehow and if that is doable in all cases.
The only issues I see now are when you preset global variables in the onLoad/onShow methods.
Then, if the user/solution during operation alters the variables and the a form is reloaded again, the variables would be updated again.
But I guess this is just something you have to keep in mind designing the methods.
Tnx for the info.
Paul
first time global setting should be done in the solution startup method