NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

segfaults and creating types

First, just to confirm, Im guessing that theres no way to 'catch' segfaults like there is in c so that labview wont crash but will rather just close the vi youre running?

Second, is there any way to create a new data type? Im writing some c interface code and i dont want users passing any random signed 32 bit integer as a pointer value and causing a segfault, rather my vis should only accept a data type (which cotains a pointer) that I define.

 

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

Hi Gordal,

 

I don't believe LabVIEW catches segfaults.  However, since segfaults typically occur from trying to access memory that is not accessable, can you add checks in your code to ensure that the user is making valid calls?  Furthermore, the only segfault issues I've seen concerning LabVIEW have been on Linux machines.  Are you on a Linux machine?

 

As far as custom data types goes, are you wondering about custom control and type definitions?  Here is information on using them. I hope this helps!

 

 

 

 

0 Kudos
Message 2 of 2
(2,681 Views)