Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Referencing National Instrument DLL's crashes Visual Studio 2008

I am referencing my application to NationalInstruments.Common.dll (8.9.35.302) and NationalInstruments.DAQmx.dll (9.1.35.15).

 

My problem: if the main window of my application ist open in the Visual Studio IDE and I then start debugging (means: run my application) then the Visual Studio crashes.

 

If I remove the references to the NationalInstruments DLL the Visual Studio never crashes.

 

Does anybody have similar experiences and any possible reason/solution to this?

0 Kudos
Message 1 of 10
(5,480 Views)

HI Daniel,

 

normallly a crash happens, when the call is wrong - means wrong parameters, so that wrong memory is allocated.

Can you post the code?

 

Thanks

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 2 of 10
(5,471 Views)

There is no code yet. I have removed all code that is accessing NI-DAQ from my project. I am only referencing the DLLs (.NET components) in my project settings. (Visual Studio 2008 --> Solution Explorer --> References).

0 Kudos
Message 3 of 10
(5,467 Views)

Can you please post your whole project?

 

Thanks!

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 4 of 10
(5,464 Views)

Hello -

 

Just curious, do you have Visual Studio 2010 installed on this machine where Visual Studio 2008 is crashing??

 

NickB

National Instruments

 

0 Kudos
Message 5 of 10
(5,452 Views)

Interesting question 🙂

 

I had Visual Studio 2010 installed but removed it again later. But really my problems started, after Visual Studio 2010 has been installed!

 

I am currently setting up a "clean" new PC to find out if the error will also occur there....

0 Kudos
Message 6 of 10
(5,450 Views)

We do know of an issue with installing Visual Studio 2010 alongside National Instruments driver software.  However, because of the nature of the fix, I would like to contact you offline regarding a fix for this issue.  Do I have your permission to contact the forum administrator and get your email address?

 

Thanks -

 

NickB

National Instruments

0 Kudos
Message 7 of 10
(5,447 Views)

I would be very happy if you contact me by email. Please feel free to get my address from the administrator.

0 Kudos
Message 8 of 10
(5,445 Views)

Thanks - I will be contacting you as soon as the forum administrator gets back to me.

 

Also - just FYI and for anyone else who may run into this in the future, there is a KB for this issue.  However, because of the current nature of the fix for this issue, it simply asks you to contact NI support.  The KB will be updated as a more sustainable fix becomes available.

 

Thanks again - and sorry for any inconvenience,

 

NickB

National Instruments

0 Kudos
Message 9 of 10
(5,441 Views)

I am having a related problem to this. I am trying to use DAQmx 9.1.35.15 in a .net 4.0 WPF application using VS2010. The application compiles fine and VS2010 does not crash, but when I run the application in debug mode I get the following error: Could not load file or assembly 'NationalInstruments.DAQmx.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A).

 

Is it possible that this related to the issue in this thread?

 

I do not have VS2008 installed.

 

Thanks,

Steven

0 Kudos
Message 10 of 10
(5,276 Views)