C# exception thrown at 0x73406EAD (clr.dll)

-1

I have an exception and I'm not really good at dev to find a solution. I import serveral dll's. I have an exception:

Exception thrown at 0x73406EAD (clr.dll) in YourApplication.exe: 0xC0000005: Access violation reading location 0x00000200.

My visual studio debug output is :

'YourApplication.exe' (Win32): Loaded 'C:\YourApplication-hmi\bin\x86\Debug\mydll.dll'. Module was built without symbols.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AC1F8.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AC1F8.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AC1F8.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AC1F8.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AC1F8.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD3E4.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD250.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD3BC.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
The thread 0x4960 has exited with code 0 (0x0).
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> > at memory location 0x007AD228.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: USBDeviceNotFoundException at memory location 0x007AC374.
Exception thrown at 0x755146D2 (KernelBase.dll) in YourApplication.exe: 0x0EEDFADE (parameters: 0x1B4AC115, 0x1B62AEA0, 0x1B5DEAF0, 0x1B5F85F0, 0x007AD7EC, 0x007ACF34, 0x007ACF14).
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> > at memory location 0x007AC6EC.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AD45C.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AD45C.
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AD45C.
The thread 0x4a48 has exited with code 0 (0x0).
System.Windows.Data Error: 40 : BindingExpression path error: 'CompanionExpanded' property not found on 'object' ''TestConfigurator' (HashCode=43680716)'. BindingExpression:Path=CompanionControl.CompanionExpanded; DataItem='BotsViewModel' (HashCode=62375226); target element is 'Expander' (Name=''); target property is 'IsExpanded' (type 'Boolean')
Exception thrown at 0x755146D2 in YourApplication.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> > at memory location 0x007AD47C.
Exception thrown at 0x00000200 in YourApplication.exe: 0xC0000005: Access violation executing location 0x00000200.
Exception thrown at 0x73406EAD (clr.dll) in YourApplication.exe: 0xC0000005: Access violation reading location 0x00000200.  <mandatory>true</mandatory>

I update the dll. Still the same. This application works on an other computer. Perhaps I need to update my clr ?

EDIT : To be more specific. The exception was thrown at this line :

DllImportHelpers.CheckResult(MyDllImport.MyFunction(_handler, UInt32.Parse(_aWidth)), "MyFunction", DisplayName, messages);

The function call from MyDllImport is:

[DllImport(MyDllName, CallingConvention = DllImportHelpers.DllCallingConvention, CharSet = DllImportHelpers.DllCharSet)]
public static extern error MyFunction(IntPtr generator, imn_uint width);

This call is for a low level function. This only return an error if the generator is null.

c#
c++
boost
clr
asked on Stack Overflow Feb 10, 2021 by Justin Vuffray • edited Feb 10, 2021 by D.Kallan

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0