有人可以帮我解决问题吗?我正在使用visual studio 2013 vb.net,我的数据库是mysql。我的数据库user
上有一个表,其字段id
是自动增量int,print
数据类型是blob。保存指纹时,blob获得的大小为65kb,因此我认为已经是指纹。但是当我尝试验证它时,应用程序可能会停止工作并向我显示此错误消息:
An exception of type 'System.Runtime.InteropServices.COMException' occurred in DPFPVerNET.dll but was not handled in user code
Additional information: Exception from HRESULT: 0xFFFFFFF8
DPFPVerNET.dll
上是否有问题,或者只是我的代码?
无论如何,这是我的代码。
connectDB()
Dim printFDB As DPFP.Template = New DPFP.Template
Dim virifyFDB As New DPFP.Verification.Verification
Dim memStream As MemoryStream
Dim da As New MySqlDataAdapter
Dim dt As New DataTable
Dim i As Integer
Dim data As Byte()
Dim selectCom As New MySqlCommand("select * from user", con)
With da
.SelectCommand = selectCom
.Fill(dt)
End With
For i = 0 To dt.Rows.Count - 1
data = dt.Rows(i)("print")
memStream = New MemoryStream(data)
printFDB.DeSerialize(memStream)
MyBase.Process(Sample)
Dim features As DPFP.FeatureSet = ExtractFeatures(Sample, DPFP.Processing.DataPurpose.Verification)
If Not features Is Nothing Then
Dim result As DPFP.Verification.Verification.Result = New DPFP.Verification.Verification.Result()
Verificator.Verify(features, printFDB, result)
UpdateStatus(result.FARAchieved)
If result.Verified Then
MakeReport("The fingerprint was VERIFIED.")
Else
MakeReport("The fingerprint was NOT VERIFIED.")
End If
End If
Next
disconnectDB()
我需要一些指导。谢谢。
这是错误:
DPFP.Error.SDKException: Event Handler has generated an Exception ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xFFFFFFF8
at 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)
at DPFP.Verification.Verification.Verify(FeatureSet FeatureSet, Template Template, Int32 FARRequested)
at DPFP.Verification.Verification.Verify(FeatureSet FeatureSet, Template Template, Result& Result)
at Enrollment.VerificationForm.Process(Sample Sample) in C:\Program Files\DigitalPersona\One Touch SDK\.NET\Samples\Visual Studio 2005\VBNET\Enrollment\VerificationForm.vb:line 65
at Enrollment.CaptureForm.OnComplete(Object Capture, String ReaderSerialNumber, Sample Sample) in C:\Program Files\DigitalPersona\One Touch SDK\.NET\Samples\Visual Studio 2005\VBNET\Enrollment\CaptureForm.vb:line 79
at DPFP.Capture.Capture.MessageReceived(Message& m)
--- End of inner exception stack trace ---
at DPFP.Error.ExceptionFactory.Throw(Exception Exception, ErrorCodes ErrorCode, String ErrorMessage)
at DPFP.Capture.Capture.MessageReceived(Message& m)
at DPFP.Capture.Capture.MessageEvents.MessageWindow.WndProc(Message& m)