To see what happen with the GC you can use a Dictionary with a weak reference set to true and using the object you want to cheeck as a key: var d:Dictionary = new Dictionary(true) dmyObject = whatever when the object will not be longer available it will be delete from the dictionary here a complete sample based on your example at wonderfl : wonderfl.net/c/e9W4 you see that very quickly both of your object have been garbage collected.
To see what happen with the GC you can use a Dictionary with a weak reference set to true and using the object you want to cheeck as a key: var d:Dictionary = new Dictionary(true) dmyObject = whatever when the object will not be longer available it will be delete from the dictionary. Here a complete sample based on your example at wonderfl : wonderfl.net/c/e9W4 you see that very quickly both of your object have been garbage collected.
GREAT work on all that mate, thanks heaps. – Marty Wallace Jun 1 at 10:44 Cool, Dictionary can be used to monitor memory leaks this way! – alxx Jun 1 at 10:50.
In your example, temporary object is created, passed into function, iterated by its properties, then it should be collected on next GC pass. There's nothing to hold it in memory (although GC pass may not come immediately, but there is no way (yet) to know that for sure. ) If you're in doubt, I'd add that property access (obji) creates no references to temporary object - property is just copied (basic types by value, and for classes reference is copied.).
For example, mmc. SomeObject = obj would then prevent the temporary obj from being collected? The GC is my weakness in flash.
– Ascension Systems Jun 1 at 7:41 Can you recommend any ways to test this? Ie maybe something that will alert me when dataObject no longer exists? – Marty Wallace Jun 1 at 7:45 @Ascension Systems: yes, exactly.
GC references are one way - you can hold them to (former) object contents, while holder object is gone. – alxx Jun 1 at 7:51 @Marty Wallace: If you're using FB, it has memory profiling tool. Create a lot of such objects and take couple of memory snapshots to compare.
It probably can't be tested with pure ActionScript. – alxx Jun 1 at 7:55 I'm afraid I don't have Flash Builder; I work with the Flash IDE. – Marty Wallace Jun 1 at 8:22.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.