IronOCR における SEHException と AVX サポートのトラブルシューティング
Curtis Chau
Updated: 2026年6月29日
未処理の例外: System.Runtime.InteropServices.SEHException

この問題は、AVX サポートのない古い Xeon、Celeron、Pentium、または Atom プロセッサを使用しているマシンでよく発生します。
非AVXプロセッサのサポートはIronOCRバージョン2022.8.7804で追加されたため、後のリリースにアップグレードしてください。
// Example: Checking AVX support programmatically in C#
using System;
class ProcessorFeatures
{
// Main method to check AVX support
static void Main()
{
// Check if the machine's processor supports AVX
if (IsAvxSupported())
{
Console.WriteLine("AVX is supported.");
}
else
{
Console.WriteLine("AVX is not supported. Consider updating IronOcr to the latest version that supports non-AVX processors.");
}
}
// Function to determine if AVX is supported
static bool IsAvxSupported()
{
return System.Runtime.Intrinsics.X86.Avx.IsSupported;
}
}' Example: Checking AVX support programmatically in C#
Imports System
Friend Class ProcessorFeatures
' Main method to check AVX support
Shared Sub Main()
' Check if the machine's processor supports AVX
If IsAvxSupported() Then
Console.WriteLine("AVX is supported.")
Else
Console.WriteLine("AVX is not supported. Consider updating IronOcr to the latest version that supports non-AVX processors.")
End If
End Sub
' Function to determine if AVX is supported
Private Shared Function IsAvxSupported() As Boolean
Return System.Runtime.Intrinsics.X86.Avx.IsSupported
End Function
End Classこのサンプルコードでは、プロセッサがAVX命令をサポートしているかどうかを判断するためにSystem.Runtime.Intrinsics.X86.Avx.IsSupportedプロパティを使用します。 AVXがサポートされていない場合、非AVXプロセッサに対応したIronOCRバージョンを使用していることを確認することをお勧めします。

テクニカルライター
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。
...
詳しく読む