07-11-2010 08:56 AM
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?
07-12-2010 03:09 AM
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
07-12-2010 03:34 AM
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).
07-12-2010 03:58 AM
Can you please post your whole project?
Thanks!
07-12-2010 07:45 AM
Hello -
Just curious, do you have Visual Studio 2010 installed on this machine where Visual Studio 2008 is crashing??
NickB
National Instruments
07-12-2010 07:58 AM
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....
07-12-2010 08:02 AM
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
07-12-2010 08:06 AM
I would be very happy if you contact me by email. Please feel free to get my address from the administrator.
07-12-2010 08:16 AM
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
07-28-2010 12:54 PM
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