The following bug report became useful as a FAQ, thanks to Wxman’s excellent posts.
The topic is presented below without editing, as debugger users will surely be more than able to extract what they need from it!
Best wishes, and many thanks to Wxman.
Mouse
The bug/issue
- What you did: Debugging the code below in VS2010
- What actually happened or you actually saw: The application hangs, and if tracing in VS (F10), VS hangs also
- What you expected to happen or see: Normal execution
- How you tried to fix it & what happened: Nothing changed
- If its an application compatibility problem have you tried the application fixes?: Yes
- Details (exact version) of any application involved with download link: MS Visual Studio 2010 ver. 10.0.30319.1
- Whether you can make the problem happen again, and if so exact steps to make it happen: Just make a project and copy/paste the code below. Then execute it.
- Any other information (eg your guess regarding the cause, with reasons): No.
Files appended. (Please zip unless screenshots).
- Screenshots illustrating the bug: Nothing special
- Screenshots of related CIS event logs and the Defense+ Active Processes List: No
- A CIS config report or file: No
- Crash or freeze dump file: No
Your set-up
- CIS version, AV database version & configuration used: CIS 5.0.163652.1142
- a) Have you updated (without uninstall) from CIS 3 or 4: No
b) if so, have you tried reinstalling (if not please do)?: - a) Have you imported a config from a previous version of CIS: No
b) if so, have U tried a preset config (if not please do)?: - Other major changes to the default config (eg ticked ‘block all unknown requests’, other egs here. ) No
- Defense+ and Sandbox OR Firewall security level: D+ Safe Mode, FW Custom Policy, SB Enabled
- OS version, service pack, no of bits, UAC setting, & account type: Win.7.32.7600 all updates installed, UAC disabled, admin
- Other security and utility software installed: None, windows fw is disabled
- Virtual machine used (Please do NOT use Virtual box): None
Dim MyWebClient As WebClient = New WebClient()
Dim ur As New Uri("http://my.testserver.com/")
With MyWebClient
With .Headers <-- IT HANGS IN THIS LINE!!!!
.Add("Connection", "keep - alive")
.Add("Keep-Alive", "115")
.Add("Accept", "text/html,image/jpg")
.Add("Accept-Charset", "ISO-8859-1,utf-8;")
.Add("Accept-Encoding", "gzip,deflate")
End With
AddHandler .DownloadDataCompleted, AddressOf DownloadDataCallback
.DownloadDataAsync(ur)
End With