Hi,
I'm trying to avoid that my DLL is being locked by Vegas/ScriptEngine after first run. I've pondered the web for some time and the only solution I've found is to generate a Proxy DLL which creates a New AppDomain.
Fine - I made the code: but now VSA complains about Sony.Vegas not being Serializable and thus not possible to "send remotely" to my new appdomain.
Code snippet:
AppDomain ap = AppDomain.CreateDomain("Lazze");
ap.CreateInstanceFromAndUnwrap(Application.StartupPath + "\\Script Menu\\lzVegas.dll","lzVegas.lzForm",new object[]{_vegas});
----------------
Anyone got a working solution on how to call an external dll/assembly without getting it locked?
Best regards,
Lazze Ziden
Sweden
I'm trying to avoid that my DLL is being locked by Vegas/ScriptEngine after first run. I've pondered the web for some time and the only solution I've found is to generate a Proxy DLL which creates a New AppDomain.
Fine - I made the code: but now VSA complains about Sony.Vegas not being Serializable and thus not possible to "send remotely" to my new appdomain.
Code snippet:
AppDomain ap = AppDomain.CreateDomain("Lazze");
ap.CreateInstanceFromAndUnwrap(Application.StartupPath + "\\Script Menu\\lzVegas.dll","lzVegas.lzForm",new object[]{_vegas});
----------------
Anyone got a working solution on how to call an external dll/assembly without getting it locked?
Best regards,
Lazze Ziden
Sweden