11-28-2017 08:21 AM
Hello together,
I am developing small application, where I would like to use .NET library for read and write MDF file with Vector MDF library (.NET). I am able to start it, but after first method Init (see picture) I obtained error 1172. And following method will not create object FileManager which I need for following functions.
Has somebody idea what should make these problems? Any solutions, hints? Now I wrote to Vector GmbH for a support. Library is functionable, because I have working example in C#. There has to be something in settings of LabVIEW or register .NET library inside LabVIEW.
Solved! Go to Solution.
11-28-2017 12:11 PM
Its a good idea to contact the supplier of the assembly(s) directly, they may be in a better position to help.
Its hard to tell without more information but it appears you are getting an unhandled Win32 exception when calling the Init() method. This might be due to failing to find an unmanaged dependency. So it is no surprise that any further method calls after an 'initialisation' fail. Perhaps you can share your working C# code as a VS solution? That way we can see not only the code but also the project references. If possible (from a legality perspective) can you supply the assemblies you are using.
Some general questions / tips:
12-06-2017 01:54 AM
Hello,
the problem was fixed. I put all support files of dll library into the same folder as my project. And it works, easy solution:-)
03-06-2022 08:05 PM
In this way can you edit MDF4 file attributes?
Could you please provide your project?
Thanks!
03-07-2022 01:57 AM
Honestly you cannot edit MDF file effectively (attributes). The best way is to read all file and make copy with changed attributes. About the project, sorry I cannot share due to our company restrictions. By the way Vector library is licensed too, it is not for free use, but if you want to do something with MDF via .NET, there is free library supported by ASAM (https://www.turbolab.de/mdf_libf.htm) I can only support in tips and tricks.
03-07-2022 07:14 PM
OK, that's very helpful. Thank you very much.