来自HRESULT的异常:0xFFFFFFF8

时间:2013-07-19 07:22:27

标签: c# asp.net .net sdk fingerprint

在验证指纹期间,我的控制器中一直出现此错误。而我似乎无法理解为什么。我正在使用digitalPersona SDK指纹识别器,asp.netc#。我已经尝试过谷歌搜索,但没有成功。 T_T

这是我控制器中的代码

    void verificationControl_OnComplete(object Control, DPFP.FeatureSet FeatureSet, ref DPFP.Gui.EventHandlerStatus EventHandlerStatus)
    {
        clearInfoBoxTimer.Stop();

        DateTime entryTime = DateTime.Now;

        DPFP.Verification.Verification ver = new DPFP.Verification.Verification();
        DPFP.Verification.Verification.Result res = new DPFP.Verification.Verification.Result();

        employee employees = null;
        foreach (fingerprint fingerPrint in this.db.fingerprints)
        {
            DPFP.Template template = new DPFP.Template();
            template.DeSerialize(fingerPrint.data);
            ver.Verify(FeatureSet, template, ref res); //I GETTING AN ERROR HERE
            if (res.Verified)
            {
                employees = fingerPrint.employee;
                break;
            }
        }
     }

完全错误:

  

System.Runtime.InteropServices.COMException(0xFFFFFFF8):异常   来自HRESULT:0xFFFFFFF8          在DPFP.Verification.Verification.MC_verifyFeaturesEx(SafeHandle   mcContext,Int32 templateSize,Byte [] templatePt,Int32   featureSetSize,Byte [] featureSet,Int32 reserved0,IntPtr reserved1,   IntPtr reserved2,IntPtr reserved3,Double& achievedFar)          在DPFP.Verification.Verification.Verify(FeatureSet FeatureSet,模板模板,Int32 FARRequested)          在DPFP.Verification.Verification.Verify(FeatureSet FeatureSet,模板模板,结果和结果)          在Timee.BundyForm.verificationControl_OnComplete(Object Control,FeatureSet FeatureSet,EventHandlerStatus&   EventHandlerStatus)中   C:\ Users \ MyName \ Desktop \ Time \ Timee \ BundyForm.cs:第79行          在DPFP.Gui.Verification.VerificationControl。<> c_ DisplayClass2.b _0()

有谁知道我为什么会收到这个错误?或者也许知道错误并分享它?谢谢。

2 个答案:

答案 0 :(得分:1)

嗯......我今天遇到了这个问题,但细节是我在数据库中将这些功能与''进行比较,我将''更改为空值并且瞧瞧

答案 1 :(得分:0)

我对此并不十分确定,但我认为我的错误与我使用的数据类型有关。我使用以前的二进制(255)在mysql中插入一个长二进制指纹数据。我认为二进制(255)不足以存储指纹的长二进制值。在我以前的服务器是sql server,我使用二进制(1632)来存储指纹二进制数据。所以我把它改成了BLOB数据类型。所以现在它没有出错。

相关问题