N
ns leonardo via .NET 247
Hello,
I am using p/Invoke to access a card reader device's dll and
I am using a thread to emulate a assync call from a sync call.
Whe I want to read a card, I start a new thead that makes a blocking call
while my application can continue. When the card is read the thread finishes.
But when the operation is canceled I have to kill the thread and it doesn't die.
I've tried to use Abort(), Suspend() and to turn the thread a background thread but it doesn't work.
I thing the thread doesn't die because it's blocked waiting the card.
Is there a way to force this therad to die?
Can somebody helpe me?
I am using p/Invoke to access a card reader device's dll and
I am using a thread to emulate a assync call from a sync call.
Whe I want to read a card, I start a new thead that makes a blocking call
while my application can continue. When the card is read the thread finishes.
But when the operation is canceled I have to kill the thread and it doesn't die.
I've tried to use Abort(), Suspend() and to turn the thread a background thread but it doesn't work.
I thing the thread doesn't die because it's blocked waiting the card.
Is there a way to force this therad to die?
Can somebody helpe me?