01-30-2004 11:44 AM
02-03-2004 03:06 AM
01-14-2009 03:13 AM
hello, when I try to run the above c# code in vs.net (c# express 2008), I get a LoaderLock error.
DLL 'C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\7.0\DNCompInfo.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.
I have no idea what that message means, and what to do about it.
Any idea's?
thanks!
01-14-2009 04:13 AM
Hi there
what .NET frameworks are installed on your system?
I'm able to run the app with .NET 2.0, XP SP3.
01-14-2009 05:54 AM
I am running version 3.5, I just installed the vs C# express edition.
I also have XP SP3
01-14-2009 06:08 AM
there is also installed v3.0, v2.0....
I've just realised that this (error is not an error but a warning) warning is only generated when I run the app in the debug mode of visual studios.
The warning occurs when the btnEquals_Click(...) method is called.
But if I click Debug "continue", the app functions as it should do. So I guess that visual studios is telling me that there is a problem, but the application works anyway.
Also the build .exe file runs normally.
I guess this is the wrong place to ask why I get this warning.
Thanks paul.
06-01-2009 12:52 AM
Hello,
I have bild VI that is containing multi lavel subVIs. The ganerate dll with lib and h files was suplied to customer.
Our customer working on " C++" and didn't have any expirience with LabView generated dll.
How he can get the list of function that is needed inorder to integrate our soft in customer aplication.
06-01-2009 01:41 AM
hi there
the customer just needs the dll, the .h (generated during the build of the dll), the correct version of the LV runime engine installed on the target system (can be downloaded for free at ni.com) and maybe the user manual of your dll in order to call the functions in the right order with the correct parameters.
06-01-2009 02:37 AM
chrisger,
what do you mean user manual of dll?in .h file I can find only main VI name .can you explain me more details because my programming level not so good
06-01-2009 05:24 AM
The .h file generated during build should look somehing like this:
/snip
#include "extcode.h"
#pragma pack(push)
#pragma pack(1)
#ifdef __cplusplus
extern "C" {
#endif
void __cdecl Fun1(double Numeric, char String[], int32_t len);
void __cdecl Fun2(double Numeric, char String[], int32_t len);
long __cdecl LVDLLStatus(char *errStr, int errStrLen, void *module);
#ifdef __cplusplus
} // extern "C"
#endif
#pragma pack(pop)
/snip
In this example wo functions Fun1 and Fun2 are exported. If you can't see such function declarations then there's something wrong with your dll build specification. Check the "Prototype definition" of the functions you want to export on the "Source file" tab of the build specification. Press "Help" on the build specification dialog box for details.
"User Manual" simply means a description of how to use the functions of the dll. A .h just says how to call he functions, but NOT how to use them correctly.