LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

UIR is crashing CVI - custom control callback raised an exception

I keep getting 'A custom control callback raised an exception' and 'Unrecoverable Internal Error at 001B:103E4335. Labwindows/CVI will be aborted.'.
 
 
This occurs when I start lab windows (if the project has the UIR open).  It also occurs when I try to open the UIR.
 
 
I have an original UIR that works, but as soon as I make a save to the UIR, I start getting this problem.  Even if the only thing I do is move a numeric over one tick.
 
 
I attached one of the UIRs causing the problem.
0 Kudos
Message 1 of 10
(6,158 Views)
In the few cases I had trouble with a corrupted UIR file (a long time ago,
CVI version 4 or so), I saved it as a TUI [Options][Save as text], closed it
and reopened it.
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 2 of 10
(6,143 Views)

I can go back a couple of releases and find a UIR that works.  Sometimes I have to delete the header before opening it in CVI or else it still crashes.  As soon as I make a small change to the file, and save the UIR, close CVI, and reopen the just saved UIR file, it crashes again.  Sometimes it takes 2 saves, closes, and reopens before it will crash.

I have been battling this for a few months now.  The work around is to keep going back to a working copy, make all the changes over again, and then I get 1 maybe 2 saves before the problem comes back!

 

 

0 Kudos
Message 3 of 10
(6,141 Views)

What version of CVI are you using?

I opened the UIR and noticed that there were no arrows on the rings. If they have disappeared, then it might be this issue.

- jared

0 Kudos
Message 4 of 10
(6,129 Views)

I am using 7.1

Thanks.

 

 

0 Kudos
Message 5 of 10
(6,123 Views)

I changed all controls to the new lab style and my problem seems to be resolved.

 

 

0 Kudos
Message 6 of 10
(6,090 Views)

I'm using CVI 2010. When I'm in the "User Interface Library" and have the "SetCtrlAttribute" function up, then by clicking on either the Control Attribute or the Attribute value I also  a "nicont.dll is registered but version is old" followed by an "ActiveX control error" pop-up. Clicking on the button again produces the "A custom control callback raised an exception".  This just happened today. Worked previously fine all along. What do you think ?

 

0 Kudos
Message 7 of 10
(5,141 Views)

Hi leichner@thorl...,

 

I found a knowledgebase article that may be helpful for the first error that you are experiencing: "nicont.dll is registered but version is old". Here is a link to it:

 

http://digital.ni.com/public.nsf/allkb/1AF3E5141142E99186256E3700605B61

 

Fixing this issue might clear up  the others. I hope that this helps.

 

Regards,

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 8 of 10
(5,055 Views)

Unfortunatly that post was put in place in 2004. Win7 and CVI2010 do not have such files:

To correct the error, unregister the nicont.dll and nicontdt.dll files from the Shared folder (using regsvr32) and delete them. Then copy the nicont_restore.dll and nicontdt_restore.dll to the Shared folder and remove the _restore from their names. Register the DLLs (using regsvr32) and reboot the machine.

0 Kudos
Message 9 of 10
(5,050 Views)

Hi leicher@thorl,

 

The path to the files on a Win 7 machine is :

 

C:\Program Files\National Instruments\Shared 

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 10 of 10
(5,035 Views)