LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Error 998 While loading the Labview Run-Time Engine

Hello.

I have a DLL made with LV 7.1 I run the dll using a C compiler and works great in WINXP, but cannot run in Win2K. Error is:

"System error 998 while loading the Labview Run-Time Engin(c:\program files\National Instruments\Shared\Labview Run-Time\7.1\\lvrt.dll)

READVOLTAGE requires a version 7.1 (or compatible) Labview Runtime Engine. Please contact the vendor of READVOLTAGE to correct this problem"



READVOLTAGE is my function inside the dll. The runtime is already installed. I tried it in another WINXP running machine and works fine.


0 Kudos
Message 1 of 5
(9,711 Views)

This is actually a Microsoft bug with statically loaded DLLs. There are a couple of workarounds for it, and I have included two links below to posts that address this issue:

Not found error message from LabVIEW runtime when called from VC++ with statically linked MFC

I get error 998 when calling a LabVIEW buildt DLL from MSVC++

Kind Regards,

E. Sulzer
Applications Engineer
National Instruments
Message 2 of 5
(9,697 Views)

I figured it out.  In C++ Builder in your project\options uder advance linker you have to add your dll uder dll's to delay-load.  This fixes it!  Thanks for your help!

Jennifer

Message 3 of 5
(9,566 Views)

Dear JennS,

 

I am having the same problem, because I am not a skilled C++ user, could you use pictures demonstrating how did you solve this problem?

Thank you very much if you can help!

 

Best,

Matt

0 Kudos
Message 4 of 5
(6,891 Views)

The NI suggestions don't do a very good job of addressing this.  For example with delayed DLL loading it just means that the Labview System 998 Error appears later after the program starts running, as does using dynamic DLL loading when the C/C++ DLL is used.  The real issue here is that the C/C++ DLL generated by labview has trouble linking to the Labview Runtime Framework when used in conjunction with some operating systems and programs.  For example our program that makes use of a Labview-created C/C++ DLL loads fine with Windows XP, but in Windows Seven Professional (32-bit or 64-bit) it generates the Labview System 998 Error, in which it declares that it can't load the Labview Runtime 2011 DLL (the path shown in the error message has two backslashes at the end, as shown in the attachment).  Since NI support says that this is Microsoft problem I've reported this to a Microsoft support community, however Microsoft has shown no interest in supporting this problem.  At present the System 998 error that occurs when using the Labview- generated C/C++ DLL, Labview Runtime Engine 2011, Windows Seven and our program remains a problem that has been going on for two years. 

0 Kudos
Message 5 of 5
(4,740 Views)