06-02-2023 08:39 AM
I have removed a unwanted class from my project and made sure all the dependencies are removed properly and there is no missing items in the project.
Whenever my other developer open this project in their machine(where he/she was used open this project with this class included earlier), for the first time LabVIEW searches for the class I deleted, when we select ignore and continue loading the project loads without any issues and there is no dependencies!!. After this LabVIEW doesn't ask for the deleted class in successive load. But when we Clear the compiler Cache in that machine again LabVIEW looks for the deleted class in the first time loading, if we ignore and continue, there is no issues with the project again..
What is the reason for this behavior? how to get rid of this first time loading search?
LabVIEW version: 2021 64bit
OS: Windows 10 64bit
Regards,
Adarsh
LabVIEW from 2006
CLA from 2016
06-02-2023 03:44 PM
Could you do a search to see if any code has a diagram disable structure or a conditional disable structure that contains the class in a disabled frame?
You could also try narrowing down the VI that contains the dependency. Create a duplicate of the project, then remove half of the items from the project. If the half-project still loads the class, try the other half to confirm it doesn't load. Repeat over and over and after a while you should be able to locate the exact VI file containing the reference so you can look for it in there more closely.
06-02-2023 05:05 PM
If you have an uninitialized shift register that contains a class, the value in that shift register might never get mutated.
If that private class data used to refer to any part of the deleted class, that could be holding the reference to the deleted class.
The solution is to initialize the shift register.
06-05-2023 07:54 AM
Another possibility could be if you still have a class that once inherited from the deleted class, the reference will remain in the mutation history of the formally child class. Preserving LabVIEW Class Data
06-12-2023 09:15 AM - edited 06-12-2023 09:37 AM
Thank you for your replies. I will double check all 3 possibilities and update if I find anything interesting