With all the problems apparently from the cache getting too large, I took
a look at constraining the cache size. Attached is a diff for your perusal
and testing.

If the storage free space is too small, cache entries are removed until
the free space is available. If no more cache entries remain, a cache
entry is not created and SaveImageInStorageCache() will 'fail' and the
image will remain in dynamic space until the viewer finishes with it and
it is removed from memory.

Comments? questions?

Christopher R. Hawks
HAWKSoft
-------------------------------------------------------------------------
Any research done on how to efficiently use computers has been long lost
in the mad rush to upgrade systems to do things that aren't needed by
people who don't understand what they are really supposed to do with them.
    -- Graham Reed, in a.s.r.




Attachment: cache.diff
Description: File attachment

Reply via email to