LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 8.0.1 trouble with VISTA

I'm currently evaluating how to get my cvi-programs running on upcoming VISTA.
ATM, I use a test pc with VISTA RC1, CVI 8.0.1 FDS evaluation version installed.
first goal is to get a rather simple program to run (no activex, no dataacq, no tcp client/server, just some UI stuff, inifile, regexpr instruments).
the program, when compiled on WIN XP,  CVI 7.1, mostly run on VISTA, but fails at a point, where FileSelectPopup() is called -
at a first try, just nothing happens, a second call will crash the program.
so, I tried to build the program on the test-platform.
everything can be compiled, but I get tons of build errors like this:

 155 Project link errors
  Failed to open external module.
  Aborted load of library "c:\program files\national instruments\cvi80\bin\cvistart.lib".
  Failed to open external module.
  Aborted load of library "c:\program files\national instruments\cvi80\bin\cvi.lib".
  Failed to open external module.
  Aborted load of library "c:\program files\national instruments\cvi80\sdk\lib\gdi32.lib".
  Undefined symbol '_RegDeleteKeyA@8' referenced in "inifile.c".
  Undefined symbol '_DisplayPanel@4' referenced in "SetDir.c".
  Undefined symbol '_StringCopyMax@12' referenced in "inifile.c".
  Undefined symbol '_InitCVIRTEEx@12' referenced in "SetDir.c".
  Undefined symbol '_ReplaceListItem' referenced in "SetDir.c".
  Undefined symbol '_RegEnumKeyExA@32' referenced in "inifile.c".
  Undefined symbol '_HasNonWhiteSpace@4' referenced in "inifile.c".
  Undefined symbol '_strcat' referenced in "SetDir.c" and "Hdmtool.c".
  Undefined symbol '_strchr' referenced in "SetDir.c" and "Hdmtool.c".
  Undefined symbol '_InsertListItem' referenced in "SetDir.c".
  Undefined symbol '_RegEnumValueA@32' referenced in "inifile.c".
  Undefined symbol '_strcmp' referenced in "SetDir.c".
  Undefined symbol '_StrICmp@8' referenced in "inifile.c".
  Undefined symbol '_strstr' referenced in "SetDir.c", "Hdmtool.c", and "posbase.c".

....

so, my question here: has anyone already tried to use cvi/cvi programs on vista ?
or ist this still a 'no go' ?




--
Once the game is over, the king and the pawn go back into the same box.
0 Kudos
Message 1 of 4
(4,070 Views)
NI doesn't plan to release a Vista compatibilty update for CVI until we are able to test against the final build. That said, we have done some testing against the release candidate and it does work for the most part. The linking problem you are seeing is probably related to the fact that you have to run CVI as Administrator at least once to have the libraries, ActiveX registrations, etc. setup properly. If you right click a shortcut to CVI and choose "Run as administrator", that problem should go away.

As to having issues with FileSelectPopup(), we haven't found any problems, but I'll look into it.

Keep an eye out for more details on Vista compatibility.

Regards,

-alex
Message 2 of 4
(4,063 Views)
thanks, Alex,
for the hints - running cvi as administrator solved the link problems (I thought, just running cvi 'as-is' would be enough, as I have local admin privilegues on this pc).
However, the FileSelectPopup() problem still persists, it turns out to be a stack overflow (see attached screenshot), although I already had increased stack size (under build options)
to 500000 bytes (as opposed to 100000 on XP, where everything is fine).
I'll now stop investigating this and wait for another VISTA RC to come up, as well as an evtually adapted CVI version.


--
Once the game is over, the king and the pawn go back into the same box.
0 Kudos
Message 3 of 4
(4,023 Views)
I was able to reproduce the problem with FileSelectPopup in Vista RC1. However, we tracked it down to a bug in the OS and not a problem in CVI. Today I tested this problem against the final Vista RTM and it seems to be working fine. Just FYI.

Regards,

-alex
Message 4 of 4
(3,943 Views)