IronOCR'da SEHException ve AVX Desteği Sorun Giderme

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

Yakalanmamış İstisna: System.Runtime.InteropServices.SEHException

File G7IUWBgksH related to IronOCR'da SEHException ve AVX Desteği Sorun Giderme

Bu sorun, AVX desteği olmayan eski Xeon, Celeron, Pentium veya Atom işlemcileri kullanan makinelerde yaygın olarak karşılaşılan bir sorun.

AVX desteklemeyen işlemciler için destek, IronOCR sürümü 2022.8.7804 ile eklendi, lütfen daha yeni bir sürüme yükseltin.

// 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

Bu örnek kodda, işlemcinin AVX komutlarını destekleyip desteklemediğini belirlemek için System.Runtime.Intrinsics.X86.Avx.IsSupported özelliğini kullanıyoruz. AVX desteklenmiyorsa, AVX dışı işlemcileri destekleyen bir IronOCR sürümü kullandığınızdan emin olmanız önerilir.

Curtis Chau
Teknik Yazar

Curtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapı...

Daha Fazla Oku
Başlamaya Hazır mısınız?
Nuget İndirmeler 5,896,332 | Sürüm: 2026.5 just released
Still Scrolling Icon

Hâlâ Kaydırıyor Musunuz?

Hızlıca kanıt ister misiniz? PM > Install-Package IronOcr
örnek çalıştır görüntünüzün aranabilir metin haline gelmesini izleyin.