jpcsupplies / Economy_mod

Basic Economy System for Space Engineers
13 stars 12 forks source link

static code analysis #121

Open midspace opened 8 years ago

midspace commented 8 years ago

Reminder to self to do some static code analysis on the mod, and to go through the static and singletons to make sure they are cleared, closed, disposed of correctly when the mod it unloaded.

And the FastResouceLock(...) method.

Some light reading: http://forums.keenswh.com/threads/how-to-access-and-store-data-in-storage.7363603/page-2#post-1286837423 https://msdn.microsoft.com/en-au/library/ff650316.aspx http://csharpindepth.com/Articles/General/Singleton.aspx

jpcsupplies commented 8 years ago

whistles Innocently
Multithreading can cause some strange things certainly..