george seifert Posted December 20, 2008 Report Share Posted December 20, 2008 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 Quote Link to comment
Dan DeFriese Posted December 20, 2008 Report Share Posted December 20, 2008 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? Quote Link to comment
george seifert Posted December 20, 2008 Author Report Share Posted December 20, 2008 QUOTE (Dan DeFriese @ Dec 19 2008, 10:10 AM) 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? Man you guys are good. I didn't need an Automation Open in the other stuff I did, but it looks like I needed it now. Thanks much. George Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.