New topic: 

2011 R2 Close Page Does not work?

<http://forums.realsoftware.com/viewtopic.php?t=39823>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        tseyfarth          Post subject: 2011 R2 Close Page Does not 
work?Posted: Wed Jul 13, 2011 1:54 am                         
Joined: Sat Dec 04, 2010 9:14 pm
Posts: 302                Hello all,

Just playing around and I found that closing a page, does not appear to be 
closing and removing it from memory.  If I bring up a page, put some data in 
text box. Then switch to a different page, the action of which calls an 
function that holds an array of pages, instructs the existing page's Function 
Close Page to execute "me.Close()", then updates the array with the newly 
opened page.

This all works. But if I go and re-open the first page (and not with the 
browser back button), the first one opens, calls the function, executes the 
Close Page function on the second page and then tells the array that the fist 
page is now the one displayed.  BUT the problem is, any entries made to the 
text boxes is still there!  So there is no way that the page was really closed 
- OR IS IT?????

Has anyone seen this?  While I could go and empty out all of the fields etc on 
form load, the problem is, I should not have to!

Anyone know what is going on????

Tim   
                             Top                 Markus Winter          Post 
subject: Re: 2011 R2 Close Page Does not work?Posted: Wed Jul 13, 2011 2:21 am  
                       
Joined: Sun Feb 19, 2006 4:00 pm
Posts: 869
Location: Heidelberg, Germany                Sounds like you have a circular 
reference - window 1 can't be really closed while you still have a reference to 
it (in Window 2)

Read up on weakref - they are there for exactly this scenario      
_________________
Best Regards

Markus

"Any 'GOD' who has a 'Chosen People' is just the product of an elitist mind"

17in MBP C2D 2,5 GHz 4 GB RAM 500 GB HD MacOS X 10.6.7
REAL Studio 2011 R1 Enterprise
supported relief project http://www.veronikawinter.de/Indien
home page http://www.ahatfullofsky.comuv.com/English/REALbasic/REALbasic.html  
                             Top                Markus Winter          Post 
subject: Re: 2011 R2 Close Page Does not work?Posted: Wed Jul 13, 2011 2:23 am  
                       
Joined: Sun Feb 19, 2006 4:00 pm
Posts: 869
Location: Heidelberg, Germany                Have a look at 
http://forums.realsoftware.com/viewtopic.php?f=1&t=36723&hilit=weakref      
_________________
Best Regards

Markus

"Any 'GOD' who has a 'Chosen People' is just the product of an elitist mind"

17in MBP C2D 2,5 GHz 4 GB RAM 500 GB HD MacOS X 10.6.7
REAL Studio 2011 R1 Enterprise
supported relief project http://www.veronikawinter.de/Indien
home page http://www.ahatfullofsky.comuv.com/English/REALbasic/REALbasic.html  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to