Hi,
I have created an ArrayList in my page as shared as it stores information for items in a listbox i have.
This works fine however, when the page is idle say for more than 10 minutes, the array automatically reduces itself in size and loses a lot of the data leading to index out of bounds error (as i try and retrieve info on an item of index listbox.selectedindex).
Is this because of garbage collection removing the objects within my ArrayList? If so, how do I prevent this from happening?
any help would be greatly appreciated
thanks
I have created an ArrayList in my page as shared as it stores information for items in a listbox i have.
This works fine however, when the page is idle say for more than 10 minutes, the array automatically reduces itself in size and loses a lot of the data leading to index out of bounds error (as i try and retrieve info on an item of index listbox.selectedindex).
Is this because of garbage collection removing the objects within my ArrayList? If so, how do I prevent this from happening?
any help would be greatly appreciated
thanks