LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Panel, pop-up, or menu bar handle is invalid at startup CVI crashes at startup

I have been getting this message when I startup CVI.  While it is loading up my last project and crashes.  CVI then shuts down.  The only way to fix this is to go to a backup of my project. 
 
When I closed down the project the last time I did not have any problems compiling.  Some how the project is getting curropted.  Any ideas?
 
 
 
0 Kudos
Message 1 of 7
(4,188 Views)
Haw are you starting CVI? You could try starting it with -newproject command-line option that starts a blank copy of the IDE (i.e. without charging any project. At this point try loading your project and see if it works well this time.
 
Also, you could try deleting the debug files informations (cvibuild.xxx directory and xxx_dbg.cdb and xxx_dbg.exe files to force the IDE to rebuild debug executable and related informations.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 7
(4,181 Views)

Deleting the debug files fixed the problem.  I wonder why these are getting curropted.

 

 

 

0 Kudos
Message 3 of 7
(4,176 Views)

dynokeith wrote:
> Deleting the debug files fixed the problem.  I wonder why these are getting curropted.
>  
>  
>  

I am having the same problem. I can't read the error message as CVI
crashes to fast to read the screen. I tried deleting cvibuild.xxx
directory and xxx_dbg.cdb and xxx_dbg.exe files, but it didn't help.
Starting with the command line option for a new project also didn't
work either. CVI starts with no project open, but as soon as I try to
open my project, CVI terminates.

Jim Barth

0 Kudos
Message 4 of 7
(4,147 Views)
In your case, it looks like it was the project file (or maybe the workspace file) that got corrupted. Would it be possible for you to attach here the .prj and the .cws files, so that we can look into it?

Luis
0 Kudos
Message 5 of 7
(4,143 Views)
I found the problem.   It was not the .prj or the .cws file.   Comparing files I found the .UIR in my project directory was smaller than the .UIR in my release directory (which contained only the .exe and .uir).   I copied the release .UIR back to my project directory and CVI opened fine.   I speculate that there was a checksum error.   I don't understand why CVI would terminate instead of giving me the opportunity to find and fix the error.     Anyway the problem is fixed.   Thanks for your input.

Jim Barth
 

0 Kudos
Message 6 of 7
(4,113 Views)
Jim,

When you open your project, CVI looks for a workspace file of the same name to determine which windows to open automatically (for example). As a result, CVI was probably trying to open the small UIR in the UI editor as you loaded the workspace. Maybe that smaller UIR had been inadvertently truncated by some tool, and so it was invalid. Depending on how corrupted it was, and where, CVI might not be able to survive the attempted load, and so it crashed in some creative way... 🙂

Anyway, I'm glad things are working for you now.

Luis
0 Kudos
Message 7 of 7
(4,106 Views)