hi all
i have one application which calls one function from dll.
that dll invokes one delegate for capturing fingerprint.
but after 4-5 capture i m getting error..
A callback was made on a garbage collected
delegate
of type
'
SOSComp!CG4Essentials.APIWrapper+CG4_CallbackResultImage::Invoke'
. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it
is
guaranteed that they will never be called.
SSO is my dll and CallbackResultImage is my delegate.
I have goggled this problem and got some solutions
i made my delegate declaration as static and also initializing it at every call of function. But still getting same error.
please help me...
god bless u all..
thank you..:)
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question
and fix the problem. Insults are not welcome.
Don't tell someone to read the manual. Chances are they have and don't get it.
Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
--SA