LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

*.uir errors in CVI5.5

It seems like it should be a simple fix but I've spent a day on it
already and need help. My old programs created using 5.0.1 give the
following error when run under CVI 5.5.

Error in call to LoadPanel:
Parent Panel Handle: 0
UIR filename:666-142.uir
Panel Resource ID:2
Error Code: -94
file not found.

Well, it doesn't get much more basic then just loading a panel but
that only adds to the frustration when it doesn't work. I used CVI's
code generator to create the code framework, from a previous 5.0.1
..uir named 666-142.uir, and then I ran the program and got this
error. Of course if I start a new project under 5.5 everything woks
fine. If I check my 666-142.h file I see that it's always the
panels themselves that get flagg
ed as not being present in th file
666-142.uir. How can this be if I just used code generator to
generate the initial framework and set the target file to
666-142.uir? Doesn't it have to know where the target file is before
it writes to it?

What's even crazier to me is that I have a generic routine that I
call through a seperate .h file which loads panels just fine before I
get this error. However, when I try to call the same LoadPanel
function for my main application, just after I've successfully run
panels from this other header file which is also included in my
666-142.prj file, I get this error. Why does it work sometimes but
not all the time? How can it create a link to a file name that it
doesn't see when it tries to run? Doesn't it have to see it first
before it writes code to it with the automatic code generator? maybe
not. I've reinstalled everyting 2 or 3 times now and have it all
working but this. I'm dead in the water here and really need a tip.
Thanks for your
help.

Grant
grant_johnson@leco.com
Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 1 of 2
(3,257 Views)
I have the same problem!
The goal is that all the *.uir files must be in the same directory as the
*.exe file from your application!!Or you have to insert the full path from
you *.uir file in LoadPanel-Function as first argument!!!!

I want to use the GetFullPathFromProject-Function to find out the full path
of the uir-file but this functions does not work!(BUG!!!) So i wait until
now for a bugfix from NI
but nothing happens!

chris
0 Kudos
Message 2 of 2
(3,257 Views)