LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX control: Mouse movement kills the application

Hi,

I have an application with an ActiveX control on a panel, created with CVI 6.0 version UIR. The application is forced to use CVI 7.1 RTE to run the .exe.
While running the .exe, the application crashes whenever the mouse pointer is on the panel with the particular ActiveX control. If I force the application to use CVI 6.0 RTEs, it works fine. Could this be due to the run time engine compatibility issues with the ActiveX.
I need to use the 7.1 RTEs to run the application as the application consists of UIRs created from 6.0 and 7.1 versions.

Any suggestions would be helpful.

Thanks and Best regards

Dwivedi
0 Kudos
Message 1 of 8
(3,860 Views)
It's possible that this may be a compatibility problem. I don't see any reports of this issue happening before, but can you give us details on the ActiveX Control you're using so we can try to reproduce the problem? What happens if you recreate the 6.0 UIR in CVI 7.1?
Jeremy L.
National Instruments
0 Kudos
Message 2 of 8
(3,830 Views)
Hi Jeremy,

Recreating the 6.0 UIRs in 7.1 or even 7.0 doesn't help. The problem still remains.

The application that I am using has more than one activeX controls. Other controls seem to be working fine, except for this particular one. I am not sure if the issue is with the activeX control. I assume, it is the incompatibility, because otherwise it would not work with 6.0 either.
The activeX control in question is the one for a 'USB based flexure stage control'.

Dwivedi
0 Kudos
Message 3 of 8
(3,827 Views)
Hello,

When you run your program in the development environment, do you see the same behavior? You mentioned that the application crashed. Did it return a particular error and message?
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 8
(3,797 Views)
Are the mouse movements used by your ActiveX control? If not a work around may be to grab the mouse events before they reach the activex control. I know that it sounds ugly but I figured out sometimes with LabWindows you have to do some ugly things to give it the appearance of working properly.
0 Kudos
Message 5 of 8
(3,789 Views)
Dwivedi,

Your going to think Im crazy but I have been having some problems with my ActiveX controls after converting to 7.0 from 6.0 also and after working with them over and over finally out of frustration just removed the ActiveX control and readded it in 7.0 and everything began working perfectly. Perhaps this will solve your problem also, worth a shot.
0 Kudos
Message 6 of 8
(3,783 Views)
Wendy:
I get a 'general protection' fatal run time error if I run the program through the environmnt.

Baker:
Thanks for your suggestion, but the activeX control does not use the mouse co-ordinates in the application. Also, re-doing the activeX in the CVI 7.0 or 7.1 environment did not help me either. I still get the same error. I think it has to do with some kind of incompatible thread with the newer run time engines.

I was told by NI to un-register the activeX control and re-register it. That did not work either. This is getting me no where.
The only way I could get it to work was to re-do all the UIRs from 7.1/7.0 back to 6.0 and use the 6.0 RTE to run the application. But this solution can not be considered a permanent one for me. I hope NI would suggest me something efficient.

Thanks to all for your suggestions,

Dwivedi
0 Kudos
Message 7 of 8
(3,769 Views)
Hello Dwivedi,

Would it be possible for you to attach a copy of the ActiveX control so we could try to reproduce and isolate the problem?

Thanks
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 8 of 8
(3,758 Views)