LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding array of class references to private data crashes Labview

Dear all

 

LabView OOP is quite a frustrating experience for me. But so far I was able to drive around the many stability problems with a lot of patience... Unfortunately I can not solve this one:

 

I have template class for plugins, the plugins inherit from the template class. The plugins (child classes) are dynamically loaded. This worked nicely so far, however, for more flexible plugin management, I wanted to add an array of references of the child classes to the private data of the plugin template class. Creating such an array (or pasting it in the private data class), not only hung up the LabView IDE, but also corrupts all the involved projects. The only way to recover from it I found so far, was to revert my trunk in the version control and restart. 

 

Any suggestions what to do? Thanks in advance.

Thomas

0 Kudos
Message 1 of 7
(3,216 Views)

You want to put instance of the children in the private data of that parent?

 

As far as I know the children know about their heritage but the parents have no knowlge of the children.

 

I do not have enough coffee in my head to offer any other ideas at this point.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 7
(3,209 Views)

Hi

 

It's me who needs a coffee...

 

Currently, I keep a list with plugin attributes in the private data space of the parent class. I wanted to add a list with "data value references" of the child instances. Maybe a stupid idea 🙂 I could flatten the reference to a string, however.

 

I had so many crashes just by adding a simple string to the private data of classes, that I did not see the forrest full of trees any more.

 

Thanks for your answer,

Thomas

0 Kudos
Message 3 of 7
(3,206 Views)

Are you using 86. or earlier?

 

I had lots of trouble in those versions. As of 2009, I had far less trouble.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 7
(3,204 Views)

No, LabView 2010. But I'm currently working on the Mac version. The Window version seems an little bit more stable.

 

Thomas

0 Kudos
Message 5 of 7
(3,200 Views)

Ben covers his head...

 

Have you tried moving back to 2009?

 

LV 2010 has renewed my nervous twicth (It manifest itself as me hitting "ctrl-s" after every other edit).

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 7
(3,197 Views)

Hmmm, I personally had the impression that 2010 is more stable (at least on the mac, around the same stability on windows). Labview 2010 seems to be stable to me, with the exception of the OOP options.

 

I put the references now simply in a shift register in a separate VI of the parent class. Seems to work.

 

Thomas

0 Kudos
Message 7 of 7
(3,193 Views)