From: SourceForge.net <no...@so...> - 2012-02-09 09:08:06
|
Bugs item #3485789, was opened at 2012-02-08 08:20 Message generated for change (Comment added) made by ludov You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=957072&aid=3485789&group_id=196342 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: PCSC wrapper Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Antoine Marot (antmarot) Assigned to: jean-daniel aussel (jdaussel) Summary: SCardGetStatusChange not blocking Initial Comment: While everything works fine on OSX Lion, I have trouble running my code on Win7. Basically, the problem is that a call to SCardGetStatusChange(hcontext, INFINITE, newstates) does not wait for changes in Win7. The state that is returned has the SCARD_STATE_CHANGED flag activated, but it has *not* changed (ie. no flags have been changed). When I inspect the integer value of my state, I remark that this value is probably too big (e.g., 1114146, 1115170, ...). Moreover, that value keeps growing when the program runs. Is this behavior caused by 32 vs 64 bits issues ? Can I force my program to use 32 bits versions of DLLs ? Thanks for your help, Antoine ---------------------------------------------------------------------- >Comment By: Ludovic Rousseau (ludov) Date: 2012-02-09 01:08 Message: I do not use Windows myself. Jean-Daniel will have to look at this issue. ---------------------------------------------------------------------- Comment By: Antoine Marot (antmarot) Date: 2012-02-08 09:31 Message: I'm using version 1.6.12. I attached two files: bug.py which exhibits the bug, and output.txt which is the output I get when inserting/removing the card. As you will see, the numeric value of the state keeps growing. Also, note the last two entries printed on the output, they are identical. ---------------------------------------------------------------------- Comment By: Ludovic Rousseau (ludov) Date: 2012-02-08 08:37 Message: What version of pyscard are you using? Can you send a short sample code exhibiting the bug? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=957072&aid=3485789&group_id=196342 |