I've been working with plugins for some time now but recently I've encountered a problem I've not come across before.
In the editor, I get a DLLNotFoundException the first time I try to start. After getting this error, if I stop and start again everything works fine. If I restart Unity then I get the same error on on the first time I run.
In standalone this has the effect that the Dll is never found as every time you start the application is the first time.
Anyone heard of this problem before? Any ideas as to what it could be? The Dll is definitely there and it does find it on subsequent runs in the editor.
asked Jul 13 '12 at 11:12 AM
Right, caught it. Realised my mistake. The plugin in question has a a dependency on another Dll. It was that Dll which was causing the error. I needed to call a function of the dependent Dll first so that it is loaded before calling anything in my own Dll.
I knew all this of course, I'd dealt with it before.
answered Jul 16 '12 at 09:10 AM