Click here to Skip to main content
15,921,226 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb6 - changing printer settings Pin
Duncan Edwards Jones20-Sep-04 4:16
professionalDuncan Edwards Jones20-Sep-04 4:16 
GeneralCrystal Reports and CSV files Pin
KreativeKai20-Sep-04 3:40
professionalKreativeKai20-Sep-04 3:40 
GeneralRe: Crystal Reports and CSV files Pin
KreativeKai24-Sep-04 5:36
professionalKreativeKai24-Sep-04 5:36 
GeneralRe: Crystal Reports and CSV files Pin
NarendraSinghJTV19-Jan-10 19:09
NarendraSinghJTV19-Jan-10 19:09 
GeneralRe: Crystal Reports and CSV files Pin
KreativeKai25-Jan-10 5:10
professionalKreativeKai25-Jan-10 5:10 
Generalvb.net template Pin
bassemhoussam20-Sep-04 0:32
bassemhoussam20-Sep-04 0:32 
GeneralRe: vb.net template Pin
Dave Kreskowiak20-Sep-04 6:31
mveDave Kreskowiak20-Sep-04 6:31 
GeneralVB.NET threading with WinHTTP Pin
Amitpd19-Sep-04 23:09
Amitpd19-Sep-04 23:09 
Hi,

Has anyone worked with WinHTTP and multithreading in VB.NET

I have written a small application for understanding threading in VB.NET.

It consists of initializing new thread, each consisting of a winHTTP request to open a particular page located on our local LAN.

The code for opening a new page in a new thread is

Private Sub Start()
Dim myWinHTTP As New WinHttp.WinHttpRequest()
myWinHTTP.Abort()
myWinHTTP.SetTimeouts(5000, 5000, 5000, 5000)
myWinHTTP.Open("GET", "http://192.168.0.60/Alliance/Login.aspx", False)
myWinHTTP.Send()
textbox.Multiline = True
textbox.Text = textbox.Text & " $$$ " & myWinHTTP.StatusText & ". Thread Id : " & Thread.CurrentThread.GetHashCode()
countLbl.Text = serial
End Sub

As observed, there were frequent errors in opening the page. The sub Stated above too was not completely exectued for quite a few threads. The control used to dissaper from the code post the command 'Dim myWinHTTP As New WinHttp.WinHttpRequest()' itself.

In anyone has any clue abt the corresponding error, please inform.

Amit
GeneralRe: VB.NET threading with WinHTTP Pin
Dave Kreskowiak20-Sep-04 6:27
mveDave Kreskowiak20-Sep-04 6:27 
QuestionHow to find a list of computer names for a network Pin
Laurie Comerford19-Sep-04 21:25
professionalLaurie Comerford19-Sep-04 21:25 
AnswerRe: How to find a list of computer names for a network Pin
Mekong River20-Sep-04 3:31
Mekong River20-Sep-04 3:31 
AnswerRe: How to find a list of computer names for a network Pin
jonathan1521-Sep-04 5:20
jonathan1521-Sep-04 5:20 
GeneralLevels In Treeview Pin
Sumit Domyan19-Sep-04 19:24
Sumit Domyan19-Sep-04 19:24 
GeneralRe: Levels In Treeview Pin
Dave Kreskowiak20-Sep-04 5:39
mveDave Kreskowiak20-Sep-04 5:39 
GeneralRe: Levels In Treeview Pin
Sumit Domyan20-Sep-04 21:05
Sumit Domyan20-Sep-04 21:05 
GeneralControlling System Audio (Resolved) Pin
EekimusMaximus19-Sep-04 18:49
EekimusMaximus19-Sep-04 18:49 
GeneralRe: Controlling System Audio Pin
Dave Kreskowiak20-Sep-04 5:35
mveDave Kreskowiak20-Sep-04 5:35 
GeneralRe: Controlling System Audio (Resolved) Pin
EekimusMaximus20-Sep-04 15:11
EekimusMaximus20-Sep-04 15:11 
GeneralMacro Subtitution Pin
Member 120813919-Sep-04 18:07
Member 120813919-Sep-04 18:07 
GeneralRe: Macro Subtitution Pin
Dave Kreskowiak20-Sep-04 5:21
mveDave Kreskowiak20-Sep-04 5:21 
GeneralVarPtr / AscB pls. help.. Pin
Member 129565019-Sep-04 17:25
Member 129565019-Sep-04 17:25 
Generalsetting text in another form Pin
V_A_S_S19-Sep-04 14:24
V_A_S_S19-Sep-04 14:24 
GeneralRe: setting text in another form Pin
Colin Angus Mackay19-Sep-04 14:58
Colin Angus Mackay19-Sep-04 14:58 
GeneralRe: setting text in another form Pin
Nick Seng19-Sep-04 15:16
Nick Seng19-Sep-04 15:16 
GeneralRe: setting text in another form Pin
V_A_S_S19-Sep-04 15:22
V_A_S_S19-Sep-04 15:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.