Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CWUI.OCX crash

Hi ,

 

I am using cwui.ocx NI component for graphical display in my aplication .The machine on which application is running has limited access rights , i.e user rights not admin rights .

 

details of component are :

cwui version : 6.0.3.589

size of file 2248KB

Date stamp : 4/02/2007 1.07 PM

 

It keeps crashing with access violation

here are debugger provided details :
EXCEPTION_RECORD:  0012f354 -- (.exr 0x12f354)
ExceptionAddress: 2411945f (cwui!DllUnregisterServer+0x000dae1b)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 00000000
   Parameter[1]: 00000000
Attempt to read from address 00000000

 

Is it possible to get debug info file this component ???

How can I fix this . Please help .

AK3000

0 Kudos
Message 1 of 6
(6,620 Views)

Greetings,

 

Can you provide the operating system of the afflicted machine? I am wondering if cwui.ocx is improperly registered. Might take a look at this link:

http://forums.ni.com/t5/Measurement-Studio-for-VB6/how-to-register-cwui-ocx-in-Windows-7/m-p/1022564...

 

 

Product Support Engineer
National Instruments
0 Kudos
Message 2 of 6
(6,605 Views)

Thanks for Reply .

 

 

It is Windows XP Profesional  5.1.2600 Service Pack 3 operating System . The machine  has limited user rights , not administrative rights.

 

Per your suggestion re-registered cwui component Version 6.0.3.589 by loging in as Admin , but no luck ..still it crashed

 

Application is using graphic display & chartX and ChartY function from cwui component to create graphic display .Display data from our app is passed by using safe array.

 

We tried changing  reducing  frequency of display update, tried performing operation in mutually exclusive mode , ie critical section . but no luck so far.

 

Graphic display in our app can be run at 2 frequencies 1HZ and 5HZ .If user sets display at 1 hzs it runs little longer and then crashes down .

 

In case of 5 hz crash can be seen  more frequently.

 

How can we prevent cwui crashes . Please advise ...

 

 

 

0 Kudos
Message 3 of 6
(6,598 Views)

Looking at your error message again I see that you're attempting to read from address 0. Is it possible that whatever you're trying to display isn't available to be displayed yet? I'd recommend looking at your setup closely and make sure that nothing is attempting to read from an area that's not ready to be read from yet.

Product Support Engineer
National Instruments
0 Kudos
Message 4 of 6
(6,587 Views)

James,

 

Crash reason is still unknown and happening frequently . I can provide a (crash reproducing ) sample code developed in Visual c++ created in

 

Microsoft visual studio 6.0.  Sample will be follow the similar desigh in which cwui component is used in  our original application.

 

Would you be able to support us to identify and rectify crash root cause . Please let me know.

 

Your response is highly appreciated.

 

Thanks

 

AK3000

 

 

0 Kudos
Message 5 of 6
(6,572 Views)

Can you please post a snippet of your code regarding this? It would be useful to see it.

Product Support Engineer
National Instruments
0 Kudos
Message 6 of 6
(6,558 Views)