LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileSelectPopup Load button says Directory History

Solved!
Go to solution

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);

 

FileSelectPopup-NotLoad.jpg

 

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.

 

0 Kudos
Message 1 of 9
(4,373 Views)

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?

0 Kudos
Message 2 of 9
(4,369 Views)

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.

0 Kudos
Message 3 of 9
(4,356 Views)

Furthermore, the file C:\WINDOWS\system32\cvitre\bin\msgrte.txt has the following two (of 1011) lines:

 

 

1313   "&Load"
1314   "N__etwork..."

 

 

If this file (or even the whole directory) is somehow corrupted, will reinstalling CVI fix it, or maybe the run time library?

0 Kudos
Message 4 of 9
(4,349 Views)
Solution
Accepted by topic author Ken-This-is-my-stinking-a

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.

 

0 Kudos
Message 5 of 9
(4,343 Views)

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!

0 Kudos
Message 6 of 9
(4,339 Views)

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

0 Kudos
Message 7 of 9
(4,335 Views)

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.

 

0 Kudos
Message 8 of 9
(4,326 Views)

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.

0 Kudos
Message 9 of 9
(4,317 Views)