windows-7

Win7: Replacing a driver without reboot

ⅰ亾dé卋堺 提交于 2020-01-14 13:15:34
问题 I'm debugging an audio driver under Windows 7. When I need to replace it with an updated version, I have to reboot the system because a copy of current driver under DriverStore is locked despite the fact that the driver is unloaded. Is there a way to avoid rebooting? It was possible on XP... 回答1: Do you tried to stop driver with devcon.exe utility (an old version can be downloaded also in http://support.microsoft.com/kb/311272, a new version you find under C:\WinDDK\7600.16385.1\tools\devcon

Unauthorized Access Exception in Windows 7

风格不统一 提交于 2020-01-14 11:58:53
问题 I have an application which reads a license file when it starts up. My install creates the folder in Program Files for the application, creates the license folder and puts the license file in there. However when I try and run the application, it needs to read/update the license file. When I try and do that I get an "Unauthorized Access Exception". I am logged on as an administrator and I'm running the program manually. Any idea why I cannot access that file even though the path is correct?

Unauthorized Access Exception in Windows 7

删除回忆录丶 提交于 2020-01-14 11:58:52
问题 I have an application which reads a license file when it starts up. My install creates the folder in Program Files for the application, creates the license folder and puts the license file in there. However when I try and run the application, it needs to read/update the license file. When I try and do that I get an "Unauthorized Access Exception". I am logged on as an administrator and I'm running the program manually. Any idea why I cannot access that file even though the path is correct?

CreateEvent from Windows-7 Logon Screen

馋奶兔 提交于 2020-01-14 10:14:17
问题 I'm asking this question because it turns out that there's some difficulty in writing a screensaver app in Delphi that's capable of running from the Logon screen. See question: Windows 7 logon screensaver in Delphi I've narrowed down the problem (or at least one problem) to a particular Win API call CreateEvent . SyncEvent := CreateEvent(nil, True, False, ''); if SyncEvent = 0 then RaiseLastOSError; This code only fails if called from the Logon screen. And GetLastError returns that access is

CreateEvent from Windows-7 Logon Screen

Deadly 提交于 2020-01-14 10:13:10
问题 I'm asking this question because it turns out that there's some difficulty in writing a screensaver app in Delphi that's capable of running from the Logon screen. See question: Windows 7 logon screensaver in Delphi I've narrowed down the problem (or at least one problem) to a particular Win API call CreateEvent . SyncEvent := CreateEvent(nil, True, False, ''); if SyncEvent = 0 then RaiseLastOSError; This code only fails if called from the Logon screen. And GetLastError returns that access is

Accepting a socket on Windows 7 takes more than a second

*爱你&永不变心* 提交于 2020-01-14 09:41:30
问题 Here's what I've done: I wrote a minimal web server (using Qt, but I don't think it's relevant here). I'm running it on a legal Windows 7 32-bit. The problem: If I make a request with Firefox, IE, Chrome or Safari it takes takes about one second before my server sees that there is a new connection to be accepted. Clues: Using other clients (wget, own test client that just opens a socket) than Firefox, IE, Chrome, Safari seeing the new connection is matter of milliseconds. I installed Apache

Accepting a socket on Windows 7 takes more than a second

血红的双手。 提交于 2020-01-14 09:41:08
问题 Here's what I've done: I wrote a minimal web server (using Qt, but I don't think it's relevant here). I'm running it on a legal Windows 7 32-bit. The problem: If I make a request with Firefox, IE, Chrome or Safari it takes takes about one second before my server sees that there is a new connection to be accepted. Clues: Using other clients (wget, own test client that just opens a socket) than Firefox, IE, Chrome, Safari seeing the new connection is matter of milliseconds. I installed Apache

How to avoid 12 seconds delay when disonnecting from share in Windows 7?

两盒软妹~` 提交于 2020-01-14 09:11:15
问题 I'm making some utils that uses NetUseAdd and NetUseDel functions to connect/disconnect to share. In Windows 7 I noticed that between calling NetUseDel and real disconnnection passes nearly 12 seconds. I made some investigations and found that net use \server /del also disonnects only after 12 seconds. Here's little script and Wireshark output, corresponding to run of script: net use \\server "" /user:"" net use \\server /delete http://i.stack.imgur.com/5CyCw.png Setting last tree connect smb

Unable to edit eclipse.ini file on Windows 7

。_饼干妹妹 提交于 2020-01-14 07:34:43
问题 I have eclipse Galileo installed in following location - C:\Program Files (x86) I was getting a weird error while executing Selenium tests on IE 8 browser. As soon as browser is launched I encounter error - RunTimeError - C:\Program Files (x86)\Java\jdk1.6.0_20\bin\javaw.exe The application has requested run time to terminate it in unusual way.... Following this I found that a few encountered this error and got rid of it by increasing jvm heap in eclipse.ini file And I tried doing same. I am

Unicode filenames on Windows in Ruby

陌路散爱 提交于 2020-01-14 07:27:26
问题 I have a piece of code that looks like this: Dir.new(path).each do |entry| puts entry end The problem comes when I have a file named こんにちは世界.txt in the directory that I list. On a Windows 7 machine I get the output: ???????.txt From googling around, properly reading this filename on windows seems to be an impossible task. Any suggestions? 回答1: You're out of luck with pure ruby (either 1.8 or 1.9.1) since it uses the ANSI versions of the Windows API. It seems like Ruby 1.9.2 will support