03-27-2010 04:14 PM
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.
03-29-2010 02:25 PM
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!