LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows unable to load cvirte.dll

I am using LabWindows/CVI 5.0 under Windows 2000.

I have an application that uses some functions from the Windows SDK to get joystick input, so therefore winmm.lib is listed as one of the project files. When I run my application from the CVI IDE, everything works perfectly. When I build a standalone executable and then try to run it, first I get a message box that says:

CVI Run-Time Engine Message
Windows unable to load DLL "cvirte.dll".

followed by a message box that says:

myapp.exe - Application Error
The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

If I remove the calls to the joystick functions and build a standalone executable, then it runs with no errors. In addition, I have previously created a standalone executable from the same source code on a different computer, and it ran with no errors. That computer also had CVI 5.0 under Windows 2000.

Can anyone suggest how to get the standalone executable to run with the joystick functions included?
0 Kudos
Message 1 of 5
(8,982 Views)

Hello,

The problem could be occurring because you have two different versions of the CVI runtime engine on the machine that works and on the one that doesn't work. You can check the runtime engine version on your machine by opening Measurement and Automation Explorer and selecting Software. From there, if you select the CVI runtime engine, the version number will appear in the right panel.

Also, there was a related issue in older versions of the CVI runtime engine. This issue was addressed in CVI runtime engine 5.0.1 p4. I would suggest downloading the most recent version of the runtime engine or the version that is on the machine that works.

Hope that helps.

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 5
(8,957 Views)
Thank you for the suggestions. I was out of town all last week and have just gotten back to this problem.

I do not seem to have a "Measurement and Automation Explorer", so I could not use it to check the version number. However, I am pretty sure that the same runtime engine is on my current computer as is on the other computer that previously ran the standalone executable with no errors. That other computer is not available to me at the moment, so it would be difficult to check, anyway.

I downloaded the new runtime engine, CVIRTE71.zip, and installed it on my current computer. That solved the problem that I was having, but introduced a new problem. Now when I run the standalone executable, it starts up without any errors, but the first time that I try to draw a plot to a graph, a message box pops up that says:

LabWindows/CVI
Mesa.dll could not be found.

When I click "OK", the program continues running, but the plot does not get drawn. The second time that I try to plot, there is no error and the plot is drawn. Every time after that also works fine. I get no errors when I run from the CVI IDE, but when I run the standalone executable I always get the Mesa.dll error the first time that I try to draw a plot.

There is no file on my computer named Mesa.dll, but I never got this error before installing CVIRTE71. Can you suggest a solution to this new problem?
0 Kudos
Message 3 of 5
(8,934 Views)
Hello

You can download the updated version of the CVI runtime from the following location

ftp://ftp.ni.com/outgoing/NILW_CVI_71_RTE.exe

Uninstall the one you previously downloaded and then install this one instead. This should include the missing mesa dll. I shall update the runtime engine installer that is available online with this one.

Sorry about the inconvienience.
Thanks
Bilal Durrani
NI
0 Kudos
Message 4 of 5
(8,914 Views)
Greetings,

That fixed it!

I downloaded NILW_CVI_71_RTE.exe, uninstalled the previous RTE and installed this one. Now my standalone executable runs with no errors, using the joystick functions from winmm.dll and plotting graphs.

Thank you for the great support,
Harold Lehman Dewar
SeaRobotics Corporation
0 Kudos
Message 5 of 5
(8,904 Views)