views:

359

answers:

2
+1  Q: 

Fingerprint SDK

Hi,

I am using fingerprint reader UFP20.The SDK providing 2 DLL files (WIS_API.dll,WisCmos2.dll). Unfortunately they not provide c# demo code. I could connect the device and test the device. Its working perfectly.

Problem : I can't capture finger print even capture initialize function working perfectly. I got error when i calling WIS_Capture() function. Error - "This function trying to access protected memory area, that may damage the system"

For more details about the function :-

WIS_Capture

Synopsis
         int WINAPI WIS_Capture( HANDLE hInit, int *rCount )
Parameter
        hInit        The handle returned by WIS_InitDriver()
        rCount       A value used internally by the function. The developer MUST 
                     initial this value to 0 before use.

Description :
     To snap a fingerprint from the fingerprint device to the main memory by a
     fingerprint image quality control process. The fingerprint quality control 
     cycle needs several frames of images and will continuously return the 
     status of the fingerprint after each frame of image captured.

Please help me to avoid this error.

+1  A: 

"This function trying to access protected memory area, that may damage the system"

this sounds similar to the error you get when you call unmanaged code from managed code.

According to THIS (you need to scroll all the way down to see the answers) you may need to add those dll's to your project solution using References -> Com.This will create a managed code wrapper so you can use them in your code.

AvatarOfChronos
Thanks for u r quick reply. But I can't add my dll's to reference. It shows an error "The file u selected not a valid assembly or COM component" when I adding reference. The dll's providing the SDK. I know only abt the functions.Please give me another solution to solve this prob.
Anoop
A: 

I get similar error when trying to call the serverside functions. Among sample projects there is a web project written in ASP / VB which uses a seperate dll that has only 1 function to compare fingerPrint templates. It is different from the client side dll in whichyou need the device connected to the comp.

Any suggestions are welcome