Jump to content

Dynamic Dispatch type not preserved


Recommended Posts

Hi,

If I connect a child class type to a static class member VI of the parent class, the static member VI preserves the child class type passing trough the VI. This is a very nice feature and simplifies programming. However, if I connect a dynamic dispatch wire to such a VI, the class type is preserved but the "dynamicity" is not. This is a bit annoying since I cannot then pass a dynamic wire to a static member VI as I have no way of casting it back to a dynamic wire. So is this intended feature for some reason or a bug?

EDIT: Oops... This problem occurs only if the static member VI is inside a polymorphic VI and you drop the polymorphic VI to the block diagram instead of dropping the static VI directly. So it sounds like a bug to me as I assume polymorphic VIs should act exatly as the VIs inside it.

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.