ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Corrupt class and "general project error"

I seem to have corrupted a LabVIEW class. I think it has something to do with the fact I was considering placing these classes in a library, but reconsidered. I thought I had removed them from the library. Now trying to add my subclass back to my parent class, I get "Generic project error", and the process fails. Not a very helpful error message, so I don't know what's wrong and I don't know what to do to fix it. There are no hits on that error message anywhere I can find. Has anyone come across it before?

0 Kudos
Message 1 of 5
(3,910 Views)
Hi eaolson,
Exactly how did you remove the classes from the library? Are you trying to add your subclass to your parent class that's in the library or is it just in your project? What's in your parent class? Was the subclass in your parent class before, and you removed it and you are trying to add it back?
If you could possibly give me the exact steps to reproduce this issue and also attach a streen shot of your project and the error you receive, that will help me pin point what could be wrong with your class.
Thanks!

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 5
(3,889 Views)
I'm embarrased to say I don't remember exactly how I got into this mess and in trying to clean things up I made it worse. I may have deleted and tried to recreate the library as part of the process. Working with this library, I can now crash LabVIEW fairly regularly (though not repeatably).

I got around the whole thing by opening up the individual VIs and cutting and pasting the entire block diagram into a clean VI in a clean project. That was a bit of work, but everything is back up and running now.

0 Kudos
Message 3 of 5
(3,863 Views)
Not wanting to side-track the thread but....

I've just run into a corrupt class too.  I have about 100 VIs which were part of this class, and I can't use them because LV can't find the class they belong to.

I COULD rebuild the class itself assuming all the sub-VIs are stillw roking, but I can't because they're tied to a now non-existing class.  How do I go about rescuing the VIs.  I don't want to copy each and every piece of code into new VIs.  That would take ages given the fact that I have custom icons and so on.....

Yeah, no backup and everything else I shouldn't be doing.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 4 of 5
(3,768 Views)
Er, 2 minutes later and I have the solution already.....

In the "File" menu there's a "disconnect from Library" option.  That will do it.  Free all sub-VIs from the non-existing class and then re-assign.

Still a bit of work, but at least I know now how to go about it.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 5 of 5
(3,765 Views)