06-02-2011 06:05 AM
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
06-02-2011 07:48 AM
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
06-02-2011 08:08 AM
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
06-02-2011 08:11 AM
Are you using 86. or earlier?
I had lots of trouble in those versions. As of 2009, I had far less trouble.
Ben
06-02-2011 08:14 AM
No, LabView 2010. But I'm currently working on the Mac version. The Window version seems an little bit more stable.
Thomas
06-02-2011 08:20 AM
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
06-02-2011 08:44 AM
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