Troubleshooting SEHException and AVX Support in IronOCR

This article was translated from English: Does it need improvement?
Translated
View the article in English

未処理の例外:System.Runtime.InteropServices.SEHException例外

File G7IUWBgksH related to Troubleshooting SEHException and AVX Support in IronOCR

この問題は、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#
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
$vbLabelText   $csharpLabel

このコード例では、System.Runtime.Intrinsics.X86.Avx.IsSupported プロパティを使用して、プロセッサが AVX 命令をサポートしているかどうかを判断します。 AVXがサポートされていない場合は、非AVXプロセッサをサポートするIronOcrのバージョンを使用していることを確認することをお勧めします。

Curtis Chau
テクニカルライター

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

開発以外にも、CurtisはIoT(Internet of Things)への強い関心を持ち、ハードウェアとソフトウェアの統合方法を模索しています。余暇には、ゲームをしたりDiscordボットを作成したりして、技術に対する愛情と創造性を組み合わせています。

準備はいいですか?
Nuget ダウンロード 5,044,537 | バージョン: 2025.11 ただ今リリースされました