您的浏览器与网页部分内容不兼容,请及时更新。 点击此处了解如何更新浏览器。

OK
网上商店

What is SEHException?

One way you get this exception is if unmanaged code does an OS RaiseException() or causes a fault.

test

If that exception is propagated up the stack to managed code, we will try to map it to a managed exception.

For example, STATUS_NO_MEMORY maps to OutOfMemoryException and STATUS_ACCESS_VIOLATION maps to NullReferenceException.

For all the exception codes that don’t have a predefined mapping, we wrap them up into SEHException.

In terms of pylon, when using C++ together with the Common Language Runtime (C++\CLI), any uncaught C++ exception will be converted into an .NET System.Runtime.InteropServices.SEHException when it reaches managed code (.NET code).

When programming with the pylon C++ API, the following exception handling is recommended:

try

{
//code using pylon
}
catch(const Pylon::GenericException& e)
{
//handle the exception
}
catch(const std::exception& e)
{
//handle the exception
}

我们很乐意为您提供协助

销售咨询
支持服务
中国区代理商
定制相机