Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2007, 06:19 AM
Authorized User
 
Join Date: Jun 2003
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






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 [email protected] 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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.