A
Alex
Hi
I am opening an xml file into a dataset and then converting it to a
namevaluecollection and then saving the collection in the cache for use
later. The cache dependency is set to the xml file however the collection is
cleared after about a minute even though it is not removed from the cache.
If I save the dataset on the cache it remains there indefinately. I can
resue the collection many times before it is cleared. The xml file is not
touched or changed either.
I believe the dispose method on the collection is being called but I cannot
figure out why. My only guess is that the garbage collector does not see the
cache as a strong reference and therefore assumes that the collection is to
be cleared
Can you only save things that can be persisted to file in the cache???
alex
I am opening an xml file into a dataset and then converting it to a
namevaluecollection and then saving the collection in the cache for use
later. The cache dependency is set to the xml file however the collection is
cleared after about a minute even though it is not removed from the cache.
If I save the dataset on the cache it remains there indefinately. I can
resue the collection many times before it is cleared. The xml file is not
touched or changed either.
I believe the dispose method on the collection is being called but I cannot
figure out why. My only guess is that the garbage collector does not see the
cache as a strong reference and therefore assumes that the collection is to
be cleared
Can you only save things that can be persisted to file in the cache???
alex