I'm working on a mod for the Unity-based game Kerbal Space Program, and also developing an as-yet-unreleased Unity-based game. In both of these places, I'm looking to use AppDomains to allow dynamic loading and unloading of assemblies.
The issue I'm having is anytime I make a call to AppDomain.CreateDomain("name") or any of its' overloads, the player crashes.
A now-abandoned [question][1], posted over a year ago deals with the same problem I'm having, with no answer, as do several (years old) forum posts.
The only post apparently having found an answer is [this][2] post and reply, dating back to 2007 and Unity 2.0 - I've been unable to make the workaround described in that post work, and the user has not logged into the forums since '09
Does anyone have any insight into this crash, or some sort of workaround?
I believe I've done my homework, in that there is no other way to unload assemblies without ending the program - workable alternatives are welcome!
[1]: http://answers.unity3d.com/questions/390709/appdomaincreatedomain-crashes-built-player.html
[2]: http://forum.unity3d.com/threads/dynamic-dll-loading.7818/
↧