NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
dynokeith2
Posts: 8
0 Kudos

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.
Active Participant
Guillaume Dargaud
Posts: 238
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

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/


Member
dynokeith2
Posts: 8
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

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!

 

 

Member
jared
Posts: 156
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

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

Member
dynokeith2
Posts: 8
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

I am using 7.1

Thanks.

 

 

Member
dynokeith2
Posts: 8
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

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

 

 

Member
leichner@thorlabs.com
Posts: 38
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

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 ?

 

Active Participant
Perry_S
Posts: 204
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

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
Member
leichner@thorlabs.com
Posts: 38
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

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.

Active Participant
Perry_S
Posts: 204
0 Kudos

Re: UIR is crashing CVI - custom control callback raised an exception

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
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page