How should you diagnose the error SEHException - External component has thrown an exception
Yes. This error is a structured exception that wasn't mapped into a .NET error. It's probably your DataGrid mapping throwing a native exception that was uncaught.
You can tell what exception is occurring by looking at the ExternalException.ErrorCode property. I'd check your stack trace, and if it's tied to the DevExpress grid, report the problem to them.
How to find reason for 'System.Runtime.InteropServices.SEHException' occurred in System.Private.CoreLib.ni.dll?
Make sure that "Break When Thrown" is enabled for the exception type (settings are in Debug -> Windows -> Exceptions). This will cause the debugger to stop where the problem occurs and makes it easier to figure out where the problem is.
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception
You can't use CloseHandle
with a pointer to user memory. You need to allocate a HANDLE
in order to close it. What do you expect CloseHandle
to close?
Related Topics
How to Print PDF on Default Network Printer Using Ghostscript (Gswin32C.Exe) Shell Command
Create Out-Of-Process Com in C#/.Net
Outofmemoryexception When I Read 500Mb Filestream
How to Check If Ioexception Is Not-Enough-Disk-Space-Exception Type
Simulating Cross Context Joins--Linq/C#
Scaling a System.Drawing.Bitmap to a Given Size While Maintaining Aspect Ratio
Itextsharp - How to Get the Position of Word on a Page
How to Center Your Main Window in Wpf
How to Initialize a Datetime Field
How to Change the Color of Winform Datagridview Header
C# 8 Switch Expression with Multiple Cases with Same Result
ASP.NET Button Onclick Event Not Firing
Custom Validation Attributes: Comparing Two Properties in the Same Model
Adding Elements to an Xml File in C#
How to Retain Callsite Information When Wrapping Nlog
How to Retrieve a List of Parameters from a Stored Procedure in SQL Server