Probably your "back" event is being hit twice so it calls the "back" action of both the current form, and the previous form somehow. It's hard for me to comment further without a concrete test case to look at.
Steve On Tue, Mar 28, 2017 at 10:01 AM, Dr. Roman Javier Canoniero < [email protected]> wrote: > 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 <[email protected]> > *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/grou >> p/codenameone-discussions. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/codenameone-discussions/beb9a6a6-30a9-410c-809b-c3abb40e >> 294f%40googlegroups.com >> <https://groups.google.com/d/msgid/codenameone-discussions/beb9a6a6-30a9-410c-809b-c3abb40e294f%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> 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-JKYgfRC6nJkZTe1xzuF3wVjKx04RED > s5O%2Badg%40mail.gmail.com > <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXV_b-6-JKYgfRC6nJkZTe1xzuF3wVjKx04REDs5O%2Badg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > ------------------------------ > [image: Avast logo] <https://www.avast.com/antivirus> > > This email has been checked for viruses by Avast antivirus software. > www.avast.com <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 > <https://groups.google.com/d/msgid/codenameone-discussions/7C267D7C632343E0AC53D5937A998467%40OwnerPC?utm_medium=email&utm_source=footer> > . > > 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 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/CAGOYrKWrSB4eJCHQbL5U%2B3NhhsQD_-b8QmFj5psVRTZKFKhoJA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
