Jump to content

Property nodes for classes start off as unwirable


mje

Recommended Posts

I don't want to call this a bug yet because I haven't hammered down how to make this behavior reproducible. But it happens often enough that I thought I'd solicit others to see if they've noticed the same behavior and have any idea on how to trigger it.

The problem: when creating class methods which define a property, the property nodes are often (initially) unusable.

For example, here's a screen shot showing the property definition for a class I'm working on:

post-11742-063820200 1282918006_thumb.pn

And the corresponding VIs, along with a chunk of code trying to use the VIs via a property node.

post-11742-062984800 1282918040_thumb.pn

These are new VIs I've just defined, and are in fact the default VIs you get when you create an accessor VI. Notice how both VIs are executable, however the property node is black: it can not be wired. The blackening of the node is normal if you select a property which you do not have access to, however the code which uses the property is in a VI which is a member of the class, so it will always have access, and besides, the VIs are defined as public since I hadn't gotten around to changing them to a more restrictive scope yet.

What I've been doing when I come across this is forcing the VIs to recompile by switching a terminal on the connector pane of one of the VIs, thus breaking both VIs, then switching the terminal back. Everything works thereafter.

Weird is all I can say. Anyone else been playing this game? Any ideas on what's going on? It doesn't seem to happen all the time...

I should add that the code that uses the property is actually acting on a DVR wire of the class...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.