01-09-2009 10:34 AM
When i trick selecting one of my .uir's in my project I get this error: Unable to open user interface resource file "... location and file name..." (The control values could not be completely loaded into the panel because teh panel has changed)
How can I fix it? when i run the program the panel loads, however I cannot edit it after simulating the file. Is there a repair that I can do? or do i have to re-create the panel? Please let me know.
Thanks!
01-09-2009 10:46 AM
01-09-2009 10:50 AM
Its at design time. When i try to select the uir to edit it, that error comes up and it wont let me load it (tab) or view it!!!
For example on the left side of labwindows CVI program where it has all of your files/libraries etc, i tried selecting one of my uir's and that message came up!
01-09-2009 11:04 AM
The error relates to design time. The error occurs when I select the .uir from the project/file tree. The error will come up and only have a option to click "OK" at which will close the error but will not load up my uir so that I can edit it. Therefore I cannot added any command buttons, list boxes etc. I hope this explains it a bit more!
01-10-2009 02:22 AM
Unfortunately I never saw this error at design time and I don't know how to solve it. Could you add a little bit more informations, in case somebody else that's reading this thread can help you?
Do you receive this error on one UIR only or in all UIRs of your project (if there are more than one).
Do you receive this error while opening other UIRs in other projects?
If you open a new instance of CVI with no project or a blank project and simply try openint that UIR file, do you receive the error again? And if you copy the UIR in another directory, does the error raises again?
01-10-2009 08:51 AM
Maybe the path for the uir file is too long for windows.
Sometimes this happens, especially when "My Documents" folder is used for storing your code (which I believe is not a good idea) .
Because "My Documents" actually translates to a much more longer path name similar to "C:\Documents and Settings\<user name>\My Documents".
Without any extra folder hierarchy it is really already very long by itself.
So Roberto's advice may work (remove the file from the project, change its folder to C:\ for instance and add it again.)
Hope this helps.
01-12-2009 08:19 AM
Hey guys, just wanted to say thank you for you help this far, i really appreciate it.
However, i have tried each of your suggestions and it still comes up with that error.
Futher Information:
I have multiple different .uir's (5 to be exact) and only the one does not work. It used to work, and then all of a sudden when i tried to select it so that i could edit it that error would pop up and the .uir would not load. I am not having this problem with anyone of the other 4 .uir's only this one. I can still open the .h file that is associated with the .uir and all of my other .h's and .c's.
So to answer Robert's questions:
1) I only receive this error trying to edit only the 1 .uir
2) I do not receive this error while opening other .uir
3) I created a new project and added the uir and tried to open it in the project (design time) and it still came up with that error.
4) I tried relocating the file directly into the "C:" directory and not in "my documents" or "Desktop" and it still came up with that error
Any other suggestions would be greatly appreciated!
The one thing that I am trying to avoid is having to re-create a new panel, because the panel is somewhat complex and re-creating it would take a while!
So please let me know what your thoughts are!
Thanks!
01-12-2009 10:53 AM - edited 01-12-2009 10:54 AM
Hello BJD17,
The troubleshooting steps that Roberto and Eren had suggested were very helpful in narrowing down the problem to a specific UIR file. I'd like to get a little more information from you.
1. What version of CVI are you using?
2. What Operating System are you running?
3. Could you please attach the .uir file and its corresponding .h file to this thread?
4. Could you also attach a screenshot of the error you receive?
Thanks!
01-12-2009 10:58 AM - edited 01-12-2009 11:07 AM
Some brainstorming on the matter:
What happens at run-time? Do the LoadPanel and DisplayPanel functions work fine for that panel or do they return any error codes?
If they do, maybe the error codes may tell something.
Can you open the file on another computer? (You can attach it to your next message and we can try it also, if you do not mind.)
If you can, save it in text format in that machine (Options>Save in Text Format), bring the .tui file to your computer and try to load it back on a new .uir file.
If that is successful save it with a different file name and replace this file with the problematic file in your project.
Or in that computer, you can simply copy the contents of this file to a new .uir file and bring it your computer as .uir file.
If you cannot open this file either, maybe it is a control or option in this file that makes your copy of CVI crash. You can try repairing your installation in this case.
A screenshot of the error message may help us understand the situation better.
01-12-2009 11:40 AM
Manooch,
In response to your questions:
1) I am using CVI 9.0
2) Operating system is XP