LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI application error 0xc0000005

Hi,

We are using a CVI 2017 application in our EMS plant for automated testing of electronic parts.
This app has several type of instruments (CAN, DMM..) and drivers. 

Another application, written in C# .net, acts like MES client, it's sending/receiving product information from/to MES system.

 

When our test application testing electronic units with audio functions, an AP515 audio analyzer is used to validate these functions(it's driver requires .net also). In this case, CVI application stops working randomly. 

 

The only thing I found is some record in the event viewer in win 10:

 

Application Error, Exception Code: 0xc0000005, Error position: 0x00584a35

 

.NET Runtime: Exception Code: c0000005, Exception postition: 00984A35
.NET version: v4.0.30319
Desc.: Process has been stopped due to an unhandled exception

 

Always these two records. When there is no need to run audio analyzer, no runtime errors occure.
When MES client is not running also no errors occure.

Can you help me?

0 Kudos
Message 1 of 4
(1,305 Views)

This kind of errors can be very tricky to debug as they involve several pieces of software and libraries that are not available at source level.

First of all I would try to discriminate whether the error arises inside your application or out of it: in Build >> Target settings... panel check Generate Map File option, next recompile and run the project. After you get the error, compare the address you read in the Event Viewer with the addresses listed in the map file (located inside cvibuild\release subfolder of the project folder): this will give you at least an indication on which function is running when the error arises.

 

 



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?
0 Kudos
Message 2 of 4
(1,267 Views)

Thanks for your reply.

In map file which column is relating to the address found in windows event log.
Rva+Base or File Addr ? 


0 Kudos
Message 3 of 4
(1,230 Views)

I would say Rva+Base but I don't remember well. The largest address lower than the one found in log message is the start of the faulty function. This can give you at least a clue as to where to search for



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?
0 Kudos
Message 4 of 4
(1,220 Views)