Watchout for this little "trap" I tripped in

I was using the DzListView and DzListViewItems

I had an object that I stored with the list view items addDataItemString key, Object val )

It worked well, for a bit, but then when that was read back using Object : getDataItemString key ) later on in the code (by a click handler for the list), Poof - DS crashed.

After some logging and a change, I realized that the object stored with addDataItem will be purged by the garbage collector if it's not also stored into an array in the class.

The time before the crash was very random, from 20 seconds to minutes..

 

Sign In or Register to comment.