Griaule Biometrics

Home » Forums » FINGERPRINT SDK » .NET Specific » C# no event are fired
3 replies [Last post]
stephan9
Offline
Joined: 2008-09-19
Rate this post:
0
No votes yet
C# no event are fired

Hi... I'm trying to develop an application in C# VS 2005 using Giaule SDK (free edition).
and it seems i do some thing wrong....
if i run the converted C# sample from SDK it works... but when i run my application with almost same code then events are fired... :(

here's my code.
(assuming I have the ontrol on my form and the Util class)

private void Form1_Load(object sender, EventArgs e)
{
MyUtil = new Util();
if(MyUtil.InitializeGrFinger(axGrFingerXCtrl) != GrFingerXLib.GRConstants.GR_OK)
{
MessageBox.Show("Error initializing control");
}
}

private void axGrFingerXCtrl_SensorPlug(object sender, _IGrFingerXCtrlEvents_SensorPlugEvent e)
{
MessageBox.Show("Sensor Plugged");
axGrFingerXCtrl.CapStartCapture(e.idSensor);
}

private void axGrFingerXCtrl_SensorUnplug(object sender, _IGrFingerXCtrlEvents_SensorUnplugEvent e)
{
MessageBox.Show("Sensor Unplugged");
axGrFingerXCtrl.CapStopCapture(e.idSensor);
}

private void axGrFingerXCtrl_FingerDown(object sender, _IGrFingerXCtrlEvents_FingerDownEvent e)
{
MessageBox.Show("Finger Down");
}

private void axGrFingerXCtrl_FingerUp(object sender, _IGrFingerXCtrlEvents_FingerUpEvent e)
{
MessageBox.Show("Finger Up");
}

stephan9
Offline
Joined: 2008-09-19
Rate this post:
0
No votes yet

Ok.... solved the problem... sorry for my stupidity... :)
i never did the CapInitialize.... oops... :)

sanchez
Offline
Joined: 2008-09-20
Rate this post:
0
No votes yet

Wow, I didn't think of that.
_______________
Surf the Net anonymously, bypass school/work Web filters!

israelm
Offline
Joined: 2008-09-23
Rate this post:
0
No votes yet

FuntKlakow wrote:
Wow, I didn't think of that.
_______________
Surf the Net anonymously, bypass school/work Web filters!

Can Any one tell me how to solve this problem? plz ?