开发者

Isolated storage available space equals 0

开发者 https://www.devze.com 2023-02-10 05:23 出处:网络
I tried to increase available space for our app, but when I call isolatedStorageFile.IncreaseQuotaTo(1024*1024*30);, nothing happens. Also isolatedStorageFile.AvailableFreeSpace equals 0. W开发者_开发

I tried to increase available space for our app, but when I call isolatedStorageFile.IncreaseQuotaTo(1024*1024*30);, nothing happens. Also isolatedStorageFile.AvailableFreeSpace equals 0. W开发者_开发百科hy could it happen?


I'm going to guess that your call to IncreaseQuotaTo is not user-initiated (i.e.: within a button-click handler, or something similar). In order for this method call to succeed, it must be initiated by the user, not by code.

Also, if you're debugging and have a breakpoint in your code, anything that happens after the breakpoint is not considered to be user-initiated, no matter where the code is executed.

0

精彩评论

暂无评论...
验证码 换一张
取 消