AnsweredAssumed Answered

how to call unsafe code from a c dll

Question asked by phil765 on Aug 12, 2013
Latest reply on Aug 18, 2013 by changmeikuan
Hallo,

I'm a C# developer and one of my dlls is to be used in an agilent vee program. One of the problems encountered is that my dll is actually just a wrapper for a C library and I had to include unmanaged / unsafe code. I get the error "Failed to obtain detailed assembly information [...] System.IO.FileLoadException: Could not load file or assemby [...] or one of its dependencies. Failed to grant minimum permission requests." whenever I want to run it on a network folder. The C# library works just fine from within C# programs.

Deleting the unsafe code and recompile it safely solved the issue, so as a workaround I copied my C# dll and just removed the problematic part. However, as that would involve maintaining the same code in two different libraries I would like to know, whether there is a proper way to include unmanaged code in Agilent Vee.

Thank you for your help.  

Outcomes