1

在验证指纹期间,我的控制器中不断出现此错误。我似乎无法理解为什么。我正在使用 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 异常:DPFP.Verification.Verification.MC_verifyFeaturesEx 处的 0xFFFFFFF8(SafeHandle mcContext,Int32 templateSize,Byte[] templatePt,Int32 featureSetSize,Byte[] featureSet,Int32 reserved0,IntPtr reserved1, IntPtr reserved2, IntPtr reserved3, Double&paidFar) at DPFP.Verification.Verification.Verify(FeatureSet FeatureSet, Template Template, Int32 FARRequested) at DPFP.Verification.Verification.Verify(FeatureSet FeatureSet, Template Template, Result& Result) at Timee.BundyForm。 verifyControl_OnComplete(Object Control, FeatureSet FeatureSet, EventHandlerStatus& EventHandlerStatus) 在 C:\Users\MyName\Desktop\Time\Timee\BundyForm.cs: DPFP.Gui.Verification.VerificationControl.<>c_ 的第 79 行DisplayClass2.b _0()

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

4

2 回答 2

1

嗯......我今天遇到了这个问题,但细节是我正在将特征与数据库中的“”进行比较,我将“”更改为空值,瞧

于 2013-11-13T03:57:43.750 回答
0

I'm not really sure about this but I think my error has something to do with the datatype that I use. I use previously binary(255) to insert a long binary fingerprint data in mysql. I think binary(255) is not enough to store the long binary value of fingerprint.In my previous server which is sql server, I use binary(1632) to store the fingerprint binary data. So I changed it to BLOB datatype. So now it doesn't get an error.

于 2013-07-19T10:27:29.777 回答