Search found 4 matches

by Byte2020
Wed Jan 20, 2021 9:50 pm
Forum: General Discussion
Topic: Background Thread Error
Replies: 6
Views: 2862

Re: Background Thread Error

Thanks Joel, I simplified my code here. I am sure I misunderstood some fundamentals about caching system. void Store(string key, string value) { ES3.Save(key, value, new ES3Settings(ES3.Location.Cache)); } void StoreCache() { ES3.StoreCachedFile(new ES3Settings(Application.streamingAssetsPath + &quo...
by Byte2020
Wed Jan 20, 2021 8:33 pm
Forum: General Discussion
Topic: Background Thread Error
Replies: 6
Views: 2862

Re: Background Thread Error

Hi Joel, I just got around to circle back to this. I went the route of using cache as you mentioned. However, I cannot seem to figure out how to store/retrieve the saved files. I followed https://docs.moodkie.com/easy-save-3/es3-guides/performance/ ES3.StoreCachedFile(); ES3.CacheFile("MyFile.e...
by Byte2020
Mon May 18, 2020 3:27 pm
Forum: General Discussion
Topic: Background Thread Error
Replies: 6
Views: 2862

Re: Background Thread Error

Thank Joel,

It is indeed the race condition accessing ES3Types, introducing a lock works reliably.
I will look into the cache options.

Best,
Byte
by Byte2020
Mon May 18, 2020 5:37 am
Forum: General Discussion
Topic: Background Thread Error
Replies: 6
Views: 2862

Background Thread Error

Hi, I am running into NullReferenceException when calling Load from a background thread some of the time . (full error log below) Some other times, it runs OK. I setup ES3 to load from background thread using System.Thread. I am using Version: 3.3.1f2 • May 13, 2020 The simplified code // Main Threa...