01-22-2021 09:41 AM
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?
01-22-2021 02:59 PM
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.
01-25-2021 07:52 AM
Thanks for your reply.
In map file which column is relating to the address found in windows event log.
Rva+Base or File Addr ?
01-25-2021 03:39 PM
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