03-22-2011 05:13 PM
This is something new today, and it worked just fine last week.
FileSelectPopup Load button says "Directory History" instead of Load
file_sel_return = FileSelectPopup("", "*.txt", "", "Choose a Batch Script", VAL_LOAD_BUTTON, 0, 0, 1, 0, filename);
I found a thread that talked about mixed languages and mentions the file c:\Windows\system32\cvirte\bin\msgrte.txt
but that thread is from 2007.
My app installed on another PC work correctly; the load button says Load!
I am using CVI 9.0.1
How do I fix this?
I'm thinking it is only my PC that is messed up.
Solved! Go to Solution.
03-22-2011 05:33 PM - edited 03-22-2011 05:36 PM
Ken:
Do you have CVI installed on the problem machine? What does the dialog box look like when from the CVI project window you go to File >> Open >> Source ?
Does the dialog box behave as expected if you click the mislabeled button?
Does anything change if you replace VAL_LOAD_BUTTON with VAL_OK_BUTTON?
Do you know of anything that has changed on the problem PC in the past week?
03-23-2011 08:48 AM
Do you have CVI installed on the problem machine? Yes
What does the dialog box look like when from the CVI project window you go to File >> Open >> Source ? It looks correct, it has the "Load" button (hmmmm! interesting)!
Does the dialog box behave as expected if you click the mislabeled button? Yes
Does anything change if you replace VAL_LOAD_BUTTON with VAL_OK_BUTTON? Now the button says "N_etwork..." I just noticed, the next popup should be one with an "OK" button, but it has "Remove" on it.
Do you know of anything that has changed on the problem PC in the past week? Lotus Notes script was run to change server (which would not surprise me if it screwed this up); otherwise, nothing.
03-23-2011 09:10 AM
Furthermore, the file C:\WINDOWS\system32\cvitre\bin\msgrte.txt has the following two (of 1011) lines:
If this file (or even the whole directory) is somehow corrupted, will reinstalling CVI fix it, or maybe the run time library?
03-23-2011 09:18 AM
Ken:
The file c:\Windows\system32\cvirte\bin\msgrte.txt needs to match your CVI runtime engine c:\windows\system32\cvirte.dll. Can you check the filestamp date and tiome for both of those files? They are normally the same. If they match, check to make sure you don't have another copy of either file in your project directory or somewhere else on your path.
All the strings in question appear in msgrte.txt.
In the picture you first posted, in the upper left-hand corner, you see the string "You must select at" instead of the expected "Directory History:". The string "You must select at least one file" is in msgrte.txt. Other strings you mention are also in that file: Network, Remove
I'd check the file dates first, then look for other occurances, then uninstall/reinstall CVI.
03-23-2011 09:46 AM
I tried copying the cvtrte files from another computer, but that didn't work. I checked the dates and times of my originals were the same as the DLL you mention.
So, I reverted back to my originals, but now I cannot run. I have shutdown CVI, and rebuilt, but I still get some undebuggable errors:
1: application failed to initialize
2: application failed to initialize
3: Fatal runtime, unknown source position, non-debuggable thread caused a 'General Protection' fault.
I'm going to uninstall CVI, and reinstall that and see how things look then.
I'll get back here after I do that.
Thanks for helping so far Al S!
03-23-2011 09:53 AM
Ken:
Do you have other versions of CVI installed? You might need to uninstall all of them. After you do the uninstall, search your c: drive for any occurance of cvirte.dll
03-23-2011 10:33 AM
When I went to uninstall CVI, I noticed a repair option, so I figured that would be quicker if it works.
I ran the repair, and it rebooted my PC at the end.
Now, everything is looking good. Works like it should.
Thanks for the help.
03-23-2011 10:56 AM
I did install the latest version, 9.0.1 on top of 9.0, and that was on top of 8.5.1.
But, everything looks good now.
I hadn't noticed that I can launch those older versions, but it appears to be possible.