Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Number Max of Loaded Custom DLL in LV RT Application

Hello,

I'm currently developping a large LV RT application running on a 8108 that does a massive use of Visual C++ DLL developped by me.

I'd like to know if there is a limitation about the number of different custom DLL that a LV RT application  can load ?

Because when I use 11 DLL it works fine but when 12 DLL are loaded, my RT target crashes violently.

To precise, my DLL are "empty shell"  they do nothing.

 

LV RT 8.6

 

Regards,

Pierre R...

Certified LabVIEW Developer
0 Kudos
Message 1 of 4
(3,656 Views)

Hello Pierre,

 

I asked my colleagues in the USA about your issue and I am waiting for an answer.

 

Moreover, is it possible for you to log the errors occuring in your PXI when you load these DLLs ?

 

Have a nice day !

 

Regards,

0 Kudos
Message 2 of 4
(3,640 Views)

Hello,

 

When using DLLs with LabVIEW RT, NI recommends using VC6 (Visual Studio 6.0) or VC 7.1 (Visual Studio .NET 2003) compilers.  When you use other compilers, run-time components need to be statically linked in when compiling.

 

Consequently, each DLL has a separate copy of the C run-time(CRT), and when loading all of these DLLs at the same time, the controller is running out of memory.

 

To solve this issue, you should recompile DLLs using VC6 or VC7.1 .

 

Regards,

 

 

 

 

0 Kudos
Message 3 of 4
(3,601 Views)

This was reported to R&D (# 141272) for further investigation.

 

Cheers.

| Michael K | Project Manager | LabVIEW R&D | National Instruments |

0 Kudos
Message 4 of 4
(3,596 Views)