Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

debug assertion failed - measurement sutdio activex and installers

Hi:

 

I've created a VC+ MFC based application that includes calls to nidaq-mx functions and measurement studio activex controls.

 

The application runs great on my development computer, which pretty much has the whole labview development studio installed (2009).

 

I've created an installer for this application, I've added the NI merge modules which I assume are required by the application (didn't find much information on which one to include, except for measurement studio, I used this page: http://digital.ni.com/public.nsf/allkb/6677098983C36F9086256CFE007F457A).

 

I've installed the application on a computer that has no NI software on it (except the nidaq-mx drivers). When I run the application I get an assertion error in occcont.cpp (line 926). I believe this is related to activex errors. I don't have any other activex in my application, other than the ones I included from measurement studio.

 

Obviously something seems to be missing, could anybody give me pointers on how to identify what is missing?

 

Thanks,

JS

 

By the way something must be screwed up here because the username that displays on my profile is not the username I ever chose to use!

0 Kudos
Message 1 of 5
(7,799 Views)

Hi JS,

 

The error you are getting is related to ActiveX controls in your application. This usually means that these controls have not been registered on the deployment computer.

 

Try copying the ActiveX control to the new computer and registering it there. Check out the following KnowledgeBase article, which discusses how to do this.

 

How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?

 

Let me know if this solves the problem.

 

Take care!

 

Tanya Visser
National Instruments
LabVIEW Group Manager
0 Kudos
Message 2 of 5
(7,786 Views)

Tanya:

 

Thank you for your quick reply. I am out of the office currently and will try this solution as soon as I'm back.

 

I quickly reviewed it though, and was wondering if there is a way to automatically register and activex control during the installation of the software. It would be neat if the installer could do this, without requiring an special steps.

Alternativelly my application could always register the activex control upon boot up using a system call, but it seems a bit less elegant.

 

 

As a side note, what are the licensing terms with regards to redistribution of activex components? I have a full developer license for Labview 2009. Measurement Studio came with it. Can I provide my clients with the OCX file required for the activex control I use (mainly graphs for plotting).

 

 

Please let me know if this is possible.

 

Thanks,

JS

 

0 Kudos
Message 3 of 5
(7,773 Views)

Als, my understanding was that by adding the merge components to my installer it shoudl have registered the activex components. Or am I missing something?

 

0 Kudos
Message 4 of 5
(7,768 Views)