kiranvizru / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

(Win) psutil.disk_partitions() strange dialog #264

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use psutil.disk_partitions() on Win 7

What is the expected output?
List of disks

What do you see instead?
List of disks + strange dialog

What version of psutil are you using? What Python version?
psutil 0.4.1
Python 2.7.2

On what operating system? Is it 32bit or 64bit version?
Windows 7 32 bit

Please provide any additional information below.
How can I get rid of this dialog?

Original issue reported on code.google.com by gvs...@gmail.com on 10 May 2012 at 11:20

Attachments:

GoogleCodeExporter commented 9 years ago
It seems we have to use SetErrorMode() with SEM_FAILCRITICALERRORS in order to 
avoid this dialog to appear:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680621(v=vs.85).aspx
I can't reproduce the error though, so I can't tell whether using 
SEM_FAILCRITICALERRORS might actually fix this or not. 

Original comment by g.rodola on 10 May 2012 at 3:25

GoogleCodeExporter commented 9 years ago
I tried it again later and it worked without problem. I noticed I had connected 
Nexus One phone when this problem occurred. When it's not mounted it shows up 
as empty removable drive.

Original comment by gvs...@gmail.com on 10 May 2012 at 6:22

GoogleCodeExporter commented 9 years ago
Fixed in r1559.

Original comment by g.rodola on 13 Dec 2012 at 3:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Updated csets after the SVN -> Mercurial migration:
r1559 == revision 7a66dd49fc3e

Original comment by g.rodola on 2 Mar 2013 at 12:07

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 8 Apr 2013 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 11 Apr 2013 at 9:17

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 12 Apr 2013 at 6:21