LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 9.0/9.1 runtime problems

I've got two problems with the CVI runtime. We're still using the 8.51 runtime because we haven't yet solved the problem on how to safely update all machines here, but I'm always evaluating and checking later runtimes.

Now I'm using the IWebBrowser ActiveX control in an application, which works perfectly in 8.51, fails completely on 9.0 and 9.01 (in a clean virtual machine) and works again with 9.1 (2009). As I'd like to know why something does not work and don't want to rely on sheer luck, can you confirm that this is because of Bug-ID 165495? The error code is different from the original bug report, but I guess they might still be related. Test-project is attached (htmldisplay.zip). Is there a solution other than using 2009 runtime (I've somewhere read about installing the VC2005 runtime, but this didn't help)?

Now you might say "just use 2009 and be done with it", but a colleague and me independently discovered an even more severe showstopper regression with that release. I've managed to break the problem down in a fairly simple app. TestStand (version doesn't seem to matter) must be installed for the hang to happen. Now if I issue a SetActivePanel call on a thread other than the UI thread the app hangs. I'm not sure if it's "good practice" to issue this call on a different thread, but the help doesn't say anything in this respect and it has always worked until 9.1 came along. Test project activePanel.zip is also attached (use the "crash" button after starting. The exe is compiled using 8.51, but that doesn't seem to matter). Please confirm.

Regards, Marcel

Download All
0 Kudos
Message 1 of 5
(4,153 Views)

Hey Marcel - 

 

I've reproduced the issue you are seeing in CVI 2009 and created a bug report for it (ID 212718).  If you need one, a workaround for this issue would be to use PostDeferredCallToThread to post the panel activation back to the UI thread.  

 

I have not yet been able to reproduce the first issue you described, but if installing the VC2005 redistributable package did not solve the issue, I think it may be a new issue.  What OS are you seeing this on?  SP?

 

NickB

National Instruments 

0 Kudos
Message 2 of 5
(4,128 Views)

Hey Nick.

Thanks for the confirmation. For now we'll just hold back on updating until this is solved.

I'm using a maiden Windows XP SP 2 (IE 6) VirtualPC image for my tests, with nothing installed except the CVI RTE.

Regards, Marcel

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

Hey Marcel - 

 

I've now reproduced the first issue you reported as well.  For some reason, the Microsoft 2005 VC++ redistributable package found here didn't work for me either, but installing the Microsoft 2005 SP1 VC++ redistributable package found here did.  This leads me to believe that it is indeed the same issue you noted in your first post.  Also - if you were going to be deploying your applications, you should just be able to add the merge module found at the bottom of this post to your distribution to solve this issue.

 

Let me know if any of this works for you,

 

NickB

National Instruments 

Message 4 of 5
(4,082 Views)

Hello Nick!

Great find, thank you very much! I can confirm that it works with the SP1 version. This means we can now at least update to 9.01. If possible please keep me posted on the other issue.

All the best, Marcel

0 Kudos
Message 5 of 5
(4,067 Views)