Fehlerbehebung bei SEHException und AVX-Unterstützung in IronOCR

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

Nicht behandelte Ausnahme: System.Runtime.InteropServices.SEHException

File G7IUWBgksH related to Fehlerbehebung bei SEHException und AVX-Unterstützung in IronOCR

Dieses Problem tritt häufig auf Maschinen mit älteren Xeon-, Celeron-, Pentium- oder Atom-Prozessoren auf, denen AVX-Unterstützung fehlt.

Unterstützung für Nicht-AVX-Prozessoren wurde in Version 2022.8.7804 von IronOCR hinzugefügt, bitte aktualisieren Sie auf eine spätere Version.

// 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;
    }
}
$vbLabelText   $csharpLabel

In diesem Beispielcode verwenden wir die Eigenschaft System.Runtime.Intrinsics.X86.Avx.IsSupported, um festzustellen, ob der Prozessor AVX-Anweisungen unterstützt. Wenn AVX nicht unterstützt wird, ist es ratsam sicherzustellen, dass Sie eine Version von IronOcr verwenden, die Unterstützung für Nicht-AVX-Prozessoren enthält.

Curtis Chau
Technischer Autor

Curtis Chau hat einen Bachelor-Abschluss in Informatik von der Carleton University und ist spezialisiert auf Frontend-Entwicklung mit Expertise in Node.js, TypeScript, JavaScript und React. Leidenschaftlich widmet er sich der Erstellung intuitiver und ästhetisch ansprechender Benutzerschnittstellen und arbeitet gerne mit modernen Frameworks sowie der Erstellung gut strukturierter, optisch ansprechender ...

Weiterlesen
Bereit anzufangen?
Nuget Downloads 5,299,091 | Version: 2025.12 gerade veröffentlicht