06-08-2011 10:45 AM - edited 06-08-2011 10:46 AM
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
06-09-2011 04:55 PM
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:
06-13-2011 09:13 AM
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 ...
06-14-2011 04:12 PM
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.
06-22-2011 12:59 PM
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
06-23-2011 04:43 PM
Can you please post a snippet of your code regarding this? It would be useful to see it.