Private data control of this class uses an illegal value for its default data
- Updated2025-07-30
- 1 minute(s) read
The private data control defines the default value for a LabVIEW class. This error occurs when the private data control has values set as the defaults that are illegal. Illegal default values include the following values:
- Any value of this class itself
- Any value of any child class
- Any class LabVIEW has not loaded into memory
- Any class that uses this class as a member in its own private data control
Note LabVIEW is a by-value language and does not have a "reference to class" control. If you include a class control in the private data cluster, LabVIEW includes the entire class value in the private data. Instantiating a class that contains itself would result in the data type definition recursing infinitely and allocating by value at every level until memory was full. Only a class that is fully defined without using itself as part of its definition can be used as fields of the private data control.
To correct this error, check for these illegal default values. Check class controls and variant controls for illegal default values.