LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does labview support dll which has sub functions that are static functions?

Dear all,

 

I wrote and compiled a C function into dll to be called by labview. The function calls a sub function. It works fine if it is a normal sub function. However I see that if I declare the sub function to be static, labview will crash. So is it that labview does not support static function in dll?

 

Best,

 

Miao

0 Kudos
Message 1 of 2
(1,973 Views)

A static function simply means that it is local to the C module that defines it and can't be seen from other C modules in a library. It should not change anything else about how it works.

 

So in conclusion it should not make a difference in if it crashes or not but only create possible problems in linking the library. It seems extremely likely that you have another problem in your library that gets somehow triggered more easily when you compile your code with the static functions, but it should not have to do anything directly with the fact that you have static functions in itself.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(1,954 Views)