LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug: Nesting libraries breaks inheritance

[Originally posted on LAVA]

 

Environment is LV9.0.1 on Windows 7.

 

I've attached a small project that can be used to repro the bug.  It contains 2 libraries, MainLibrary and SubLibrary.  The libraries are not nested.  SubLibrary contains two classes, Parent and Child.  Child inherits from Parent.

 

Repro:

1. Open the Error List windows.  Note there are no errors.

2. Drag SubLibrary into MainLibrary so the entire library is nested.  (i.e. MainLibrary:SubLibrary:Parent.lvclass)

 

Result - The following error occurs in MainLibrary:SubLibrary:Child,

"The parent of this Labview class is private and is not accessible from this class."

 

Expected Result - No errors.

 

Work around 1 - Setting the access scope of either Parent.lvclass or SubLibrary.lvlib causes LV to reanalyze the permissions and remove the error.

Work around 2 - When the libraries are not nested, first move all the classes from SubLibrary to MainLibrary.  Then nest SubLibrary in MainLibrary.  Finally, move the classes from MainLibrary to SubLibrary.

Message 1 of 3
(4,307 Views)

Daklu,

 

I have taken a look at the example project you created and verified the behavior you were seeing. This was reported to R&D (CAR #236169) for further investigation. I also infomed R&D about the workarounds you provided for this issue. Thank you for the feedback!

Stephanie A.
Americas Marketing Manager
National Instruments
0 Kudos
Message 2 of 3
(4,274 Views)

This CAR is fixed in LabVIEW 2010.

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