Home All Groups Group Topic Archive Search About

IsolatedStorage and cleaning up

Author
16 Mar 2007 9:00 AM
Laurent Bugnion [MVP]
Hi,

Now it's my turn to have a question about IsolatedStorage: Do I have to
worry about cleaning up? I want to use this store to save user settings
from an XBAP application. Are the files located in this storage
permanently there? Do I need to clean up? What about a standalone
application? Are the files removed when the application is uninstalled?

Thanks,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

Author
16 Mar 2007 12:09 PM
Laura T.
The isolated storage size is constrained.
At default it's about 10MB, as documented at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconquotasisolatedstorage.asp

So you need to manage it by yourself (check
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconUsingIsolatedStorage.asp).
If you don't add custom steps on the uninstaller, the isolated storage will
not get removed when uninstalling the product.
Don't know if it's a feature or bug, but this happens, at least for me.


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconUsingIsolatedStorage.asp

Show quote
"Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> ha scritto nel messaggio
news:%23HzoXm6ZHHA.3628@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> Now it's my turn to have a question about IsolatedStorage: Do I have to
> worry about cleaning up? I want to use this store to save user settings
> from an XBAP application. Are the files located in this storage
> permanently there? Do I need to clean up? What about a standalone
> application? Are the files removed when the application is uninstalled?
>
> Thanks,
> Laurent
> --
> Laurent Bugnion [MVP ASP.NET]
> Software engineering, Blog: http://www.galasoft-LB.ch
> PhotoAlbum: http://www.galasoft-LB.ch/pictures
> Support children in Calcutta: http://www.calcutta-espoir.ch
Author
19 Mar 2007 1:32 PM
Laurent Bugnion [MVP]
Hi,

Laura T. wrote:
> The isolated storage size is constrained.
> At default it's about 10MB, as documented at
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconquotasisolatedstorage.asp
>
> So you need to manage it by yourself (check
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconUsingIsolatedStorage.asp).
> If you don't add custom steps on the uninstaller, the isolated storage will
> not get removed when uninstalling the product.
> Don't know if it's a feature or bug, but this happens, at least for me.

That's annoying. I write more and more XBAPs which, almost by
definition, don't get uninstalled, but may use IsolatedStorage. I find
it kind of hard to accept that once the XBAPs leave the cache, the files
remain in the IsolatedStorage. I'll ask MS about that.

Thanks,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

AddThis Social Bookmark Button