-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
When saving in toolbox, it sometimes reports that file somevoxmap.vx2 is locked, but it fact it was the toolbox that locked that file to count materials in it and did not finished that in time.
This is a threading issue, and you would usually encounter it with large asteroids, as they take a lot longer to decompress. The file is locked during this time.
If an asteroid is deleted through the UI, the Model/ViewModel should kill the thread that is currently examining the asteroid file for resources, thus removing the file lock.
http://stackoverflow.com/questions/4732737/how-to-stop-backgroundworker-correctly