<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-10-26 12:32 GMT+02:00 Michael Traut <span dir="ltr"><<a href="mailto:michael.traut@gmail.com" target="_blank">michael.traut@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>i can not unconditionally confirm this behavior under windows. At least when using different contexts, the second connect is blocked, even when it is shared. I have no example when the same context is used, this may differ.</div></div></blockquote><div><br></div><div>Interesting.<br></div><div>I must admit I have not tested the windows behavior on this. Maybe I should have test it myself :-(<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Afaik reusing the same context in different threads is considered bad practice (<a href="http://muscle.musclecard.narkive.com/ZAn5vTFD/multiple-threads-and-scardgetstatuschange" target="_blank">http://muscle.musclecard.<wbr>narkive.com/ZAn5vTFD/multiple-<wbr>threads-and-<wbr>scardgetstatuschange</a>)?</div></div></blockquote><div><br></div><div>Exact. Using the same hContext in different threads may lead to dead locks.<br><br><div>Maskim, can you try again on Windows but using 2 different hContext (SCardEstablishContext) in the 2 threads?<br><br></div><div>Thanks<br></div><br clear="all"></div></div><br>-- <br><div class="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>