New topic: 

Object scoping

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

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       brisance           Post subject: Object scopingPosted: Fri Jan 
22, 2010 12:28 am                        
Joined: Tue Oct 06, 2009 2:38 am
Posts: 119              A thread populates a dictionary from some database. 
When the thread ends, it appends this dictionary object into a 
globally-accessible array. However, the application generates a runtime error 
(OutOfBoundsException) if it tries to read a dictionary object from the array.

>From the error message, it appears that the thread has cleaned up the 
>dictionary after it falls out of scope.

What's the best way to go about solving this problem?     
_________________
HOWTO: RB Feedback Utility  
                            Top                timhare           Post subject: 
Re: Object scopingPosted: Fri Jan 22, 2010 3:21 am                        
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 7137
Location: Portland, OR  USA              If you append it to a global array, 
then it won't be cleaned up.  You have some other problem in your code.   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 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