This is my problem in detail:
I have two forms that the user can see. A third is the application's main form. It just has variables stored used by both forms. Now my problem is this:
They close one form and then subsequently open the other
one. This goes well. All the timers and loops are killed before the form closes so there is no wasted memory. They get their second form, but when they want to go back, it
application freezes.
This is the code i use for closing the first form:
Self.Close;
Application.CreateForm(TForm2,Form2);
(with in the OnClose event Action := caFree
And the code to go back is the same.
I think this should work. Simple enough right ??? Well,
apperantly not, because this obviously doesnt work.
I hope you guys have some hints tips or info for the
solution. I do not want to have to split up my application
into two diff parts.
Hope you can help me out, BobbaFet
Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
I have two forms that the user can see. A third is the application's main form. It just has variables stored used by both forms. Now my problem is this:
They close one form and then subsequently open the other
one. This goes well. All the timers and loops are killed before the form closes so there is no wasted memory. They get their second form, but when they want to go back, it
application freezes.
This is the code i use for closing the first form:
Self.Close;
Application.CreateForm(TForm2,Form2);
(with in the OnClose event Action := caFree
And the code to go back is the same.
I think this should work. Simple enough right ??? Well,
apperantly not, because this obviously doesnt work.
I hope you guys have some hints tips or info for the
solution. I do not want to have to split up my application
into two diff parts.
Hope you can help me out, BobbaFet
Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com