Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NI VC++ classes with IC Imaging Control C++ classes

I'm trying to use IC Imaging Control C++ classes with the NI classes (specifically the controls), but I keep getting an asertion failure when I do.  The IC Imaging Control classes allow for live video to be displayed on an application.  When I have both, the asertion failure occurs and then if I press "IGNORE" (see the attached file), the application runs, but there are no NI controls on the screen. 
 
Any ideas??
 
Help!!
0 Kudos
Message 1 of 5
(3,863 Views)
Hey,
 
Have you tried to press the debug button when you receive the error in your screenshot?  If so, what line does it jump to?  Is it a line for one of the Measurement Studio controls or to an IC Imaging control?
 
Is this the first time you try to use IC Imaging libraries along with Measurement Studio classes?  If not, what was different about the cases where it worked correctly?
 
 
Regards,
 
Santiago D
0 Kudos
Message 2 of 5
(3,853 Views)

It takes me to Line 43 of dlgdata.cpp (see attachment)

This is an MFC and not part of either NI or Imaging Control classes.

Also, I have never used both NI classes and Imaging Control classes together.  However, I have used them seperately and they have worked with no problems.

0 Kudos
Message 3 of 5
(3,851 Views)

Thank you for the information, I guess it's not really helpful if we get pointed to code in the MFC.

I am not familiar with the IC Imaging Controls so I'm not sure what might be causing the issue.

Have you tried to add just one Measurement Studio control at a time?  For example, add the NumericEdit, a very simple Measurement Studio control, along with you IC Imaging Controls and see if you can reproduce the error you were experiencing previously.

If you don't reproduce the behavior with the NumericEdit control, add another control until you find one that is creating the error.

 

Regards,

Santiago D

0 Kudos
Message 4 of 5
(3,832 Views)

Yes, I have tried that.  Unfortunately, the same errors were present.

Oh well.  I'll keep trying. 

Thanks for your help.

Chris

0 Kudos
Message 5 of 5
(3,825 Views)