Hi,
This is my first attempt at using Threading, and I plan to eventually use it for sending out mass newsletters. However, for now, I'm running a basic test to see if it works, but its not. Here is my code. Can anyone see where I'm going wrong, or what possible reasons could be causing it not to work. The page runs fine without any errors being produced.
Thanks.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim t As Thread = New Thread(AddressOf test)
t.Priority = ThreadPriority.Highest
t.Start()
End If
End Sub
Sub test()
'This is replaced with a SQL INSERT statement, but I've removed it from here for security reasons.
End Sub
...
Go to the complete details ...