Kari,
Am I correct in assuming that the dll in question was compiled using Visual Studio .NET? I was able to reproduce your error on a machine with the Visual Studio .NET Environment installed, but received multiple errors on one that did not.
It looks like your error is being originiated from the dll itself and not from the LabVIEW Run-time Engine. What function are you calling in the dll and what is it doing? Did you write the dll yourself?
The dll is probably having a harder time tracing the call chain back to LabVIEW when it is running inside the executable, as opposed to in the development environment. That�s why you don�t get the error when running the VI.
Have a nice day!
Robert M
Applications Engineer
National In
struments
Robert Mortensen
Software Engineer
National Instruments