Shawn Willden a écrit :
If you call SCardEstablishContext from one application thread and then pass
the handle off to another thread which will later call SCardReleaseContext on
it, the release will fail. The implementation explicitly checks to see that
the releasing thread is the same as the establishing thread. Is that
important for some reason? I can see how programmers could cause themselves
problems by sharing handles around, but it you're careful it can be done
safely, and it can be useful.
I had mainly added this check for security reason (against a malicious
program that wanted perturb the behaviour of a client -- perhaps it is
not a very important problem) but this proposition has been discussed
recently (I do not remember when and where -- alioth or here?). Moreover
this check does not exist on windows. So we need to decide between
compatibility or security?
Best regards,
--
Damien Sauveron
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle