The managed resource store does expose an onprogress event, see http://code.google.com/apis/gears/api_localserver.html#classes About why it ResourceStore stops midstream, I think the store is being GC'd and the associated captures that have not yet been performed are canceled. If you put 'store' in a var of global scope, i think you'll be good to go. (Alternatively, use a closure for the completion callback that has 'store' in its scope).
Also localServer.createStore(STORE_NAME) returns an instance so theres no need to call openStore immediately after. On Sun, Feb 8, 2009 at 10:47 PM, [email protected] < [email protected]> wrote: > > Every now and then (and it happens more frequently in Firefox, but > also occurs in Google Chrome as well), the caching sequence will stop > and the callback won't be made (and it won't continue caching files). > > I'm really not sure what's causing this, but my code can be found at > http://pastebin.com/d9003a5. As you can see, I'm caching a lot of > files. I'd be using the managed resource store, but that doesn't have > any kind of progress feedback from what I've seen in the examples (it > calls the callback when it's completed). > > You can find the website at http://www.roket-games.com/ if you want to > see the problem in action. > > Regards, James. > >
