LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI EXE producing R6030- CRT not initialize​d

Solved!
Go to solution

I get this error on a win7 system with CVI 2012, every time that I try Linking to a specific dll that used to work in windows xp.

 

<MSG>

Microsoft Visual C++ Runtime Library
Runtime Error!

 

R6030- CRT not initialized

</MSG>

 

Can anyone help with this...?

 

Thanks in advance.

0 Kudos
Message 1 of 11
(11,587 Views)

Hi skykeeper,

 

This is probably not an issue with CVI, since this is a C Run Time Engine error. Try running the program as an administrator; Windows 7 has increased security measures, and likely won't let you do a lot of the things you could in Windows XP.

 

Regards,


Alexandra

National Instruments
Applications Engineer
0 Kudos
Message 2 of 11
(11,570 Views)

I have tried running the exe as administrator and get the same error.

Also tried to run in XP compatibility mode no luck.

0 Kudos
Message 3 of 11
(11,568 Views)

Hi Skykeeper,

 

This issue is not related to CVI, it can happen in any C development environment. I found a number of forums with possible solutions just by Googling "R6030- CRT not initialized". 

 

Here are some tof the more comprehensive forums I found:

 

http://www.promixis.com/forums/showthread.php?21015-C-Runtime-error-R6030-CRT-not-initialized

http://forums.ni.com/t5/LabWindows-CVI/R6030-CRT-not-initialized/td-p/1857605

http://support.citrix.com/article/CTX133036

 

Look through those and others to see if those solutions fix the error that you're seeing.

 

Regards,

 

Alexandra 

National Instruments
Applications Engineer
0 Kudos
Message 4 of 11
(11,558 Views)

OK, I narrow it down to the use of a dll that I built using LabView. Now I don't know why the error is comming up.

Any Ideas anybody?

 

Thanks.

0 Kudos
Message 5 of 11
(11,536 Views)

Hi Skykeeper,

 

Does the LabVIEW code work on its own? You may have to go back to the LabVIEW Development System to troubleshoot the issue. If you do, consider posting a new discussion to the LabVIEW board.

 

Regards,

 

Alexandra 

National Instruments
Applications Engineer
0 Kudos
Message 6 of 11
(11,519 Views)

The Labview Code Works fine. also the dll works fine when is used by it self, it generates the error when used in a project with more dll's, in particular a dll from PXIT (pxit306.dll) they both work if they are not in the project togheter.

 

I have use the pxit306.dll for a long time in a project with multiple dll's built by us, but it is the first time using it with this LabView created dll.

 

Very Confusing... ???

 

0 Kudos
Message 7 of 11
(11,516 Views)

Hi skykeeper,

 

What do these two DLLs do? Please list all of the functions available.

 

Regards,

 

Alexandra

National Instruments
Applications Engineer
0 Kudos
Message 8 of 11
(11,507 Views)
Solution
Accepted by topic author skykeeper

Sorry for the delay. (busy with other projects)

 

I was forced to re-write the dll using CVI and the provided API, this works fine and have no conflicts with the other drivers and dll's.

Thanks for your Support.

 

0 Kudos
Message 9 of 11
(11,223 Views)

kkkkjk_0-1628828625980.png

Hi skykeeper,

Could you tell me how you solved the problem? I also encountered the same problem.

If possible, please try to be more detailed。

Thank you very much!

0 Kudos
Message 10 of 11
(3,143 Views)