01-29-2015 11:35 PM
Hi I'm trying to use a DLL built in labview 2011 with VB 2010 Express and .NET 3.5. I took 2DArray example fron NI.com and I made adecuations but I have following error in VB: System.BadImageFormatException.
I had notice that if I take original VB .exe downloaded from NI.com, DLL works fine, I can modified with LV 2011 compile and it will works. But as soon as I recompile VB code with 2010 Express version error pops up. Can someone explain me what is going on?
02-01-2015 04:52 PM
Hello DAVIDES,
Could you please sahre with us more information about the error?
02-01-2015 04:56 PM
What doess "adecuations" mean?
02-03-2015 08:16 AM
System.BadImageFormatException is the error that I have everytime that VB try to call DLL.
Attached you will find print screen, it is in spanish, translation for dialog says:
"It has been atemted to load a program with a wron format (Exception HRESULT: 0x800700B
Sugestion for your problem:
Make sure that your file is a valid assembled administrated (Sorry if translation is not good)
Make sure file path is correct.
..."
02-03-2015 08:18 AM
Hi RavensFan, I mean adequations for use in my applications. But even if I dont modify software it will not work after I recompile VB project with "2010 express version". I had recompiled labview DLL and it is working with original .EXE attached from NI.
02-03-2015 09:01 AM
I don't know what "adequations" are either. So I'll assume you meant to type "equations".
Have you tried an older version of VB such as VB6? Perhaps something changed in VB's runtimes that functions that used to work no longer do.
What is it about VB2010 Express that makes it "Express"? Is it a situation where it is a cheaper version of VB that may take out some functionality?
02-03-2015 09:14 AM
02-03-2015 09:20 AM
02-16-2015 08:40 AM
Hello everyone I know is been a while but I found how to solve problem. I found double2darrray example at NI.com but was done in a previous version of Visual Basic, then VB 2010 ask my to update project. I found below KB "Why do I Receive an Error when Using Visual Studio 2010 to Build a TestStand User Interface?" from NI that gave me a clue, I had following case:
"You convert an existing project that uses the TestStand UI controls from a previous version of Visual Studio to Visual Studio 2010 and you make an edit to the Windows Form containing the TestStand UI controls"
I know I dont have TestStand UI controls, but it seems with labview there is a similar problem when updating an old version VS project to VS2010 or VS2013. What I did it was to create a new project from scratch and copy paste old project and it works, I did not replace any single line of code and it works.
I hope this information migth be useful for someone else, thanks everebody for all suggestions.
Regards
David E.