Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
giampaolo opened this issue May 23, 2014 · 7 comments
Closed

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

giampaolo opened this issue May 23, 2014 · 7 comments

Comments

@giampaolo
Copy link
Owner

From gvs...@gmail.com on May 10, 2012 13:20:16

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?

Attachment: psutil_err.jpg

Original issue: http://code.google.com/p/psutil/issues/detail?id=264

@giampaolo
Copy link
Owner Author

From g.rodola on May 10, 2012 08:25:30

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.

Labels: OpSys-Windows

@giampaolo
Copy link
Owner Author

From gvs...@gmail.com on May 10, 2012 11:22:10

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.

@giampaolo
Copy link
Owner Author

From g.rodola on December 13, 2012 07:34:50

Fixed in r1559 .

Status: FixedInSVN
Labels: Milestone-0.6.2

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:07:49

Updated csets after the SVN -> Mercurial migration: r1559 == revision 
7a66dd49fc3e

@giampaolo
Copy link
Owner Author

From g.rodola on April 07, 2013 18:21:49

Status: FixedInHG

@giampaolo
Copy link
Owner Author

From g.rodola on April 11, 2013 02:17:39

Labels: -Milestone-0.6.2 Milestone-0.7.0

@giampaolo
Copy link
Owner Author

From g.rodola on April 12, 2013 11:21:26

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant