LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Embedded project .UIRs are not always updated/included when project is built

When using the "Embed project .UIRs" option in Labwindows/CVI V7.0.0 (393), we find that the UIR is not always included in the final executable (or not always updated if it was present in a previous build).

Our solution to this is to uncheck the option, rebuild the application, re-check the option, and then rebuild the application again.

This seems to be a bug? If not is there a simple fix, such as a build option we're missing?

Thanks!
0 Kudos
Message 1 of 13
(5,080 Views)
Hello

I was unable to reproduce this on my version of CVI 7. When using LoadPanel(), are you providing it the absolute path to the UIR or just the name. If you give it the full path, it always loads the panel from the specified path first. With just the simple name, it uses the embedded UIR. I tried chaning the uir, building the exe, moving it to another location and running it from there. I did it for a couple of tris, adding controls on the panel each time.

Let me know if I missed a step

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 13
(5,073 Views)
We are passing the simple name to LoadPanel, i.e. just the name of the uir file without a path.

The symptom is confirmed by looking at the size of the generated executable: When we build the project with the "Embed" option checked, following a change to the uir (or the addition of a new uir), we see the executable is not as big as it should be (and we get the panel load error when running the executable) - Doing what I say above makes the executable bigger, and we then get no errors when running it.

One possibility is that various project files may be Read-Only during the development process (they are all under source control). Do certain files *have* to be writable to ensure a project gets re-built correctly?

Running on NT SP6, in case that matter
s.
0 Kudos
Message 3 of 13
(5,073 Views)
I got the same problem with the same version of CVI running on W98.
My workspace include several project including the same uirs (and
source files) but it not seem to be related to that issue.
It really seem to be a bug.
0 Kudos
Message 4 of 13
(5,074 Views)
We too have lots of problems with this.
In a large project with 17 uir files it seems that they are omitted from the .exe file on a random basis.
It makes the process of making and testing distribution kits very time-consuming.
0 Kudos
Message 5 of 13
(5,032 Views)
Hello roslocke,

In which version of CVI are you seeing this issue? Similar issues were fixed in CVI 7.1.
If this issue is still occuring in CVI 7.1, we will look further into the source.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 6 of 13
(5,009 Views)
Hi,

I'm using cvi 7.1.1 under XP SP2.
0 Kudos
Message 7 of 13
(5,000 Views)
Hello roslocke,

In your project, do you use simple path names instead of absolute path names as suggested in a previous post? Also how long are the basenames of the UIRs that are not embedded? As in, does it only happen with UIRs that have longer filenames? Were you able to isolate any similarities between the UIRs that were not embedded? I am diligently trying to reproduce this problem so we can isolate the cause.

Thanks in advance.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 8 of 13
(4,979 Views)
Hi,

Yes I'm only using simple filenames. I too looked for some sort of pattern, but failed to find one.
On one PC it refuses to include a file called "mp_ui.uir", on another it includes that one but omits "password_ui.uir". At one point it omitted "mptr_ui.uir", but after a few rebuilds it included it.

All the filenames are pretty short, and generally they reside in the same folder as the project or a sub-folder one or two levels below, (again, no discernable pattern).

I'm sorry this isn't a great deal of help.

Ros Locke
0 Kudos
Message 9 of 13
(4,959 Views)
Hi Mark,
I have also seen this with several of my apps from CVI 7.0 and 7.1. I kinda got lucky and the missing UIRs always seems to stay constant until I add or remove a new one. Once I figure out which one isn't getting included--with the same panel not found error that you describe--I manually include those specific UIR files in a distribution kit group.
I have never tried cycling the distribute UIR checkbox, perhaps it works. I really prefer not to distribute UIR files.

Orlan Franks
0 Kudos
Message 10 of 13
(4,929 Views)