Jump to content

Null refum error when calling dll


Recommended Posts

I have an ActiveX interface that's giving me some problems. I'm able to create a reference where I can select the ActiveX class. I can also create properties and methods. When I run my code I get the follow error when I try to set a property.

Error 97

Null Refnum was passed in as input

If I put a probe on the reference it shows the value as 0.

Any ideas what's going on? I've programmed ActiveX interfaces before but haven't run into this.

George

Link to comment

QUOTE (george seifert @ Dec 19 2008, 09:53 AM)

I have an ActiveX interface that's giving me some problems. I'm able to create a reference where I can select the ActiveX class. I can also create properties and methods. When I run my code I get the follow error when I try to set a property.

Error 97

Null Refnum was passed in as input

If I put a probe on the reference it shows the value as 0.

Any ideas what's going on? I've programmed ActiveX interfaces before but haven't run into this.

George

Hard to say without seeing the code. The error code would appear to be telling the truth (0 is a NULL refnum). Is the Refnum 0 immediately after the Automation Open.vi?

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.