steve:

i use :

                  myForm form1 = new myForm(Display.getInscance().getCurrent());
                   form1.show();

and  when i postback i put:

                    prevForm.showBack();

in my custom form class i set prevForm with the 
Display.getInscance().getCurrent() what i sent as parameter.

several times, when i postback CN1 sends me to forms who was opened before but 
are not the previous



From: Steve Hannah 
Sent: Tuesday, March 28, 2017 1:19 PM
To: [email protected] 
Subject: Re: [codenameone-discussions] how to remove a Form from memory after 
showback()

As long as you're not keeping an active reference to the Form object, it will 
be garbage collected. 

Steve

On Mon, Mar 27, 2017 at 8:26 PM, <[email protected]> wrote:

  Hi! what is the right way to remove a Form from memory after a showBack?

  thanks!


  If you are experiencing an issue please mention the full platform your issue 
applies to:
  IDE: NetBeans/Eclipse/IDEA
  Desktop OS
  Simulator 
  Device

  -- 
  You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to [email protected].
  Visit this group at https://groups.google.com/group/codenameone-discussions.
  To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/beb9a6a6-30a9-410c-809b-c3abb40e294f%40googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.





-- 

Steve Hannah 
Software Developer
Codename One
http://www.codenameone.com
-- 
You received this message because you are subscribed to a topic in the Google 
Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/codenameone-discussions/4yqve5ABAOI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXV_b-6-JKYgfRC6nJkZTe1xzuF3wVjKx04REDs5O%2Badg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7C267D7C632343E0AC53D5937A998467%40OwnerPC.
For more options, visit https://groups.google.com/d/optout.

Reply via email to