Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 21st, 2007, 06:19 AM
Authorized User
 
Join Date: Jun 2003
Location: Great Dunmow, Essex, United Kingdom.
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multi-threading issue

Hi All,

I have the following code. The code itself seems to work in that the thread is created and run, however when the thread hit's a line of code 'RaiseEvent' this does not get through to the Parent object. Can someone see from my code why that is?

     Protected WithEvents clsDTS As New clsDTS()
      Private Delegate Sub startThread()

    Protected Sub btnCapture_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCapture.Click

       Dim myThread As New startThread(AddressOf clsDTS.Main)
       Dim workerthread As New Thread(AddressOf myThread.Invoke)
       workerthread.Name = "dtsMainThread"
       workerthread.Priority = ThreadPriority.Normal
       workerthread.Start()

    End Sub

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error handling while multi threading minotaur01 General .NET 0 August 9th, 2007 05:55 PM
Multi-Threading Issue jwebb Pro VB.NET 2002/2003 11 April 23rd, 2007 07:46 AM
multi threading rashid.shaban@gmail.com BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 26th, 2007 11:48 PM
Multi threading, web service requests sheel VS.NET 2002/2003 2 January 12th, 2007 04:39 AM
ASP.NET Multi-Threading, is there such a thing? flyin General .NET 1 April 23rd, 2004 03:05 PM



All times are GMT -4. The time now is 10:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.