Thread: [pywin32-bugs] [ pywin32-Bugs-3009827 ] QueryDosDevice fails with error 234
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2010-06-01 09:17:34
|
Bugs item #3009827, was opened at 2010-06-01 11:17 Message generated for change (Tracker Item Submitted) made by andersjm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 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: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Anders J. Munch (andersjm) Assigned to: Nobody/Anonymous (nobody) Summary: QueryDosDevice fails with error 234 Initial Comment: After attaching an additional USB device, win32file.QueryDosDevice(None) suddenly started failing with the exception: pywintypes.error: (234, 'QueryDosDevice', 'Der er flere data til r\xe5dighed.') Error 234 is ERROR_MORE_DATA, which indicates that the supplied buffer is too small. (The text translates to 'More data is available.) Looking at win32file.i, MyQueryDosDevice expects a too small buffer to result in ERROR_INSUFFICIENT_BUFFER; so presumably treating ERROR_MORE_DATA as synonymous will fix it. (Python 2.4.4, pywin32-208.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-06-03 18:49:38
|
Bugs item #3009827, was opened at 2010-06-01 04:17 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 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: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Anders J. Munch (andersjm) Assigned to: Nobody/Anonymous (nobody) Summary: QueryDosDevice fails with error 234 Initial Comment: After attaching an additional USB device, win32file.QueryDosDevice(None) suddenly started failing with the exception: pywintypes.error: (234, 'QueryDosDevice', 'Der er flere data til r\xe5dighed.') Error 234 is ERROR_MORE_DATA, which indicates that the supplied buffer is too small. (The text translates to 'More data is available.) Looking at win32file.i, MyQueryDosDevice expects a too small buffer to result in ERROR_INSUFFICIENT_BUFFER; so presumably treating ERROR_MORE_DATA as synonymous will fix it. (Python 2.4.4, pywin32-208.) ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2010-06-03 13:49 Message: I can't reproduce this on XP, Vista, or Windows 7. Which OS are you on ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-06-03 19:35:29
|
Bugs item #3009827, was opened at 2010-06-01 11:17 Message generated for change (Comment added) made by andersjm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 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: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Anders J. Munch (andersjm) Assigned to: Nobody/Anonymous (nobody) Summary: QueryDosDevice fails with error 234 Initial Comment: After attaching an additional USB device, win32file.QueryDosDevice(None) suddenly started failing with the exception: pywintypes.error: (234, 'QueryDosDevice', 'Der er flere data til r\xe5dighed.') Error 234 is ERROR_MORE_DATA, which indicates that the supplied buffer is too small. (The text translates to 'More data is available.) Looking at win32file.i, MyQueryDosDevice expects a too small buffer to result in ERROR_INSUFFICIENT_BUFFER; so presumably treating ERROR_MORE_DATA as synonymous will fix it. (Python 2.4.4, pywin32-208.) ---------------------------------------------------------------------- Comment By: Anders J. Munch (andersjm) Date: 2010-06-03 21:35 Message: XP. To reproduce you need for len(win32file.QueryDosDevice(None)) to exceed the initial buffer size of 8192 - or reduce the initial buffer size so that it does. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-06-03 20:49 Message: I can't reproduce this on XP, Vista, or Windows 7. Which OS are you on ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-06-03 21:05:05
|
Bugs item #3009827, was opened at 2010-06-01 04:17 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 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: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Anders J. Munch (andersjm) Assigned to: Nobody/Anonymous (nobody) Summary: QueryDosDevice fails with error 234 Initial Comment: After attaching an additional USB device, win32file.QueryDosDevice(None) suddenly started failing with the exception: pywintypes.error: (234, 'QueryDosDevice', 'Der er flere data til r\xe5dighed.') Error 234 is ERROR_MORE_DATA, which indicates that the supplied buffer is too small. (The text translates to 'More data is available.) Looking at win32file.i, MyQueryDosDevice expects a too small buffer to result in ERROR_INSUFFICIENT_BUFFER; so presumably treating ERROR_MORE_DATA as synonymous will fix it. (Python 2.4.4, pywin32-208.) ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2010-06-03 16:05 Message: It already does on my system: >>> d=win32file.QueryDosDevice(None) >>> len(d) 8593 I also tried hardcoding the initial buffer sizes lower, still succeeds. ---------------------------------------------------------------------- Comment By: Anders J. Munch (andersjm) Date: 2010-06-03 14:35 Message: XP. To reproduce you need for len(win32file.QueryDosDevice(None)) to exceed the initial buffer size of 8192 - or reduce the initial buffer size so that it does. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-06-03 13:49 Message: I can't reproduce this on XP, Vista, or Windows 7. Which OS are you on ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-06-04 06:50:34
|
Bugs item #3009827, was opened at 2010-06-01 11:17 Message generated for change (Comment added) made by andersjm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 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: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Anders J. Munch (andersjm) Assigned to: Nobody/Anonymous (nobody) Summary: QueryDosDevice fails with error 234 Initial Comment: After attaching an additional USB device, win32file.QueryDosDevice(None) suddenly started failing with the exception: pywintypes.error: (234, 'QueryDosDevice', 'Der er flere data til r\xe5dighed.') Error 234 is ERROR_MORE_DATA, which indicates that the supplied buffer is too small. (The text translates to 'More data is available.) Looking at win32file.i, MyQueryDosDevice expects a too small buffer to result in ERROR_INSUFFICIENT_BUFFER; so presumably treating ERROR_MORE_DATA as synonymous will fix it. (Python 2.4.4, pywin32-208.) ---------------------------------------------------------------------- Comment By: Anders J. Munch (andersjm) Date: 2010-06-04 08:50 Message: I checked on the (previously) failing system: len(win32file.QueryDosDevice(None))==10222 -- so clearly I was wrong to point to the 8192 initial buffer size. Also I can't reproduce it anymore, whether it was the nightly powercycle or a slightly different mix of USB devices that did it, I don't know. That means I can't test a fix, so I suggest you close it as 'works for me'. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-06-03 23:05 Message: It already does on my system: >>> d=win32file.QueryDosDevice(None) >>> len(d) 8593 I also tried hardcoding the initial buffer sizes lower, still succeeds. ---------------------------------------------------------------------- Comment By: Anders J. Munch (andersjm) Date: 2010-06-03 21:35 Message: XP. To reproduce you need for len(win32file.QueryDosDevice(None)) to exceed the initial buffer size of 8192 - or reduce the initial buffer size so that it does. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-06-03 20:49 Message: I can't reproduce this on XP, Vista, or Windows 7. Which OS are you on ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-06-05 22:11:46
|
Bugs item #3009827, was opened at 2010-06-01 04:17 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 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: win32 Group: None >Status: Closed >Resolution: Works For Me Priority: 5 Private: No Submitted By: Anders J. Munch (andersjm) Assigned to: Nobody/Anonymous (nobody) Summary: QueryDosDevice fails with error 234 Initial Comment: After attaching an additional USB device, win32file.QueryDosDevice(None) suddenly started failing with the exception: pywintypes.error: (234, 'QueryDosDevice', 'Der er flere data til r\xe5dighed.') Error 234 is ERROR_MORE_DATA, which indicates that the supplied buffer is too small. (The text translates to 'More data is available.) Looking at win32file.i, MyQueryDosDevice expects a too small buffer to result in ERROR_INSUFFICIENT_BUFFER; so presumably treating ERROR_MORE_DATA as synonymous will fix it. (Python 2.4.4, pywin32-208.) ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2010-06-05 17:11 Message: Closing per submitter's suggestion. ---------------------------------------------------------------------- Comment By: Anders J. Munch (andersjm) Date: 2010-06-04 01:50 Message: I checked on the (previously) failing system: len(win32file.QueryDosDevice(None))==10222 -- so clearly I was wrong to point to the 8192 initial buffer size. Also I can't reproduce it anymore, whether it was the nightly powercycle or a slightly different mix of USB devices that did it, I don't know. That means I can't test a fix, so I suggest you close it as 'works for me'. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-06-03 16:05 Message: It already does on my system: >>> d=win32file.QueryDosDevice(None) >>> len(d) 8593 I also tried hardcoding the initial buffer sizes lower, still succeeds. ---------------------------------------------------------------------- Comment By: Anders J. Munch (andersjm) Date: 2010-06-03 14:35 Message: XP. To reproduce you need for len(win32file.QueryDosDevice(None)) to exceed the initial buffer size of 8192 - or reduce the initial buffer size so that it does. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-06-03 13:49 Message: I can't reproduce this on XP, Vista, or Windows 7. Which OS are you on ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 |