LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Migration from 7.0 to 8.1 - problems...

Hi,
I just make a migration from CVI 7.1 to 8.1 on with my already developed (and already debugged ;-)) project. But on some using of my popups I've got the following:
NON-FATAL RUN-TIME ERROR:   "Terminal.c", line 585, col 5, thread id 0x00000F9C:   Library function error (return value == -77 [0xffffffb3]). The attribute is valid for child panels only Some attributes of top level panels are determined by the host operating system.
and the message repeats again and again .... The debugging process is then impossible.
Has someone an idea what's wrong? (I try to make some investigation in CVI help, change the parent pane, but I don't get clear explanation of the basic problem).

(I use the XP with SP2, CVI 8.1. The project cyclically read data on RS232 line and has a receive callback on this.)

Thanx!
George
0 Kudos
Message 1 of 15
(4,888 Views)
Hi George,

Could you post the line of code that is causing the error?

Regards,
0 Kudos
Message 2 of 15
(4,834 Views)
Hi, James,
thanks for your reply. Unfortunately there is no specific code segment, sorry.
I made some investigation ("the blind way seeeking method") with "success", as result I must load panels as top-level panel:

    LoadLocalizedPanel (0, panelFile, LOGIN, langFile, &hndPLogIn);

(originally I load panels as child panel(s)     LoadLocalizedPanel (hndPMain, panelFile, LOGIN, langFile, &hndPLogIn);    ).

 May be there is a problem, but I don't understand why (or is this wrong construction and/or violation of rules described in "Panel and Multithreading" section?).

Thanx,
Jiri

0 Kudos
Message 3 of 15
(4,832 Views)
Hi Jiri,

If you are using multiple threads, and you are trying to load your panel as a sub-panel of another panel that was loaded in a different thread, it will not work. If you are not using multple threads, there may be something else at the root of this problem. If this is the case, are you setting any attributes of the panel manually?

Regards,
0 Kudos
Message 4 of 15
(4,825 Views)
Hi, James,
thanks for your reply!
I'm not using multiple threads (I hope 😉 ). All panels are loaded in one function, but I'm using tabs (see attachement).
Under CVI 7.1 I used the EasyTab toolbox, now the Tab control is utilized.
The error (-77) is invoked on main thread - i.e. point to RunUserInterface () line.

Regards,
George (= Jiri)

0 Kudos
Message 5 of 15
(4,811 Views)
Hi George,

I think the problem you are seeing may be related to the issue being discussed in this thread:
LoadLocalizedPanel cant read LabWindows 7.1.1 lwl Files / language resource file

If you notice the last post, Luis suggests re-generating the .lwl file.

Regards,
0 Kudos
Message 6 of 15
(4,773 Views)
Hi James,

thanks for your suggestion - but it does'nt workSmiley Sad.

On the thread's list there only one thread: 'main'; newly generated .lwl file is identical as before. I changed only the parent panel parameter in the call of function:

    LoadLocalizedPanel (hndPMain, panelFile, LOGIN_CVS, langFile, &hndPCVSLog);

from 0 to hndPMain.

When trying to display popup, the error -77 (with some delay) appears. If I break the run, the line RunUserInterface () is highlited.

(The above mentioned panel has of course some attributes changed - I use the Pwctrl.fp instrumen functions; but the modification is done after the panels are loaded and the system of tab's is establisned).

Regards,
George


0 Kudos
Message 7 of 15
(4,759 Views)
Hi George,

The last thing to try would be to recreate your UIR file from scratch in CVI 8.1.

Regards,
0 Kudos
Message 8 of 15
(4,736 Views)
Hello here,
 
Did you try to export your UIR as a TUI file and load it in CVI 8.1 ?
Maybe it could help.
 
See you,
Daindim
0 Kudos
Message 9 of 15
(4,730 Views)
Hello,

thanks for your suggestions, boys.
The results are unsuccessfull:
1) there are problem importing the .tui file (nothing was imported - I have no time to dissect this behaviour).
2) re-creation of the panel leads to the same error notice (-77).

Regars,
George
0 Kudos
Message 10 of 15
(4,695 Views)