Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 May 18th, 2005, 05:18 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multi thread objects

Hi

  My task is I want to extract email addresses in a web page(s). We are implementing this one in

VB. Here we are using some 3rd party tools for Multi threading. Sample code segment looks like

following...

For cur = 1 To UBound(Mpro_l_hrefs)
   seltitle.ListItems(Mpro_lastitemcnt + cur).SubItems(7) = cur
   csit = seltitle.ListItems(Mpro_lastitemcnt + cur).SubItems(2)
   csit = ""
   Call m_oProgressMgr.threadhref(cur, seltitle.ListItems

   (Mpro_lastitemcnt + cur).SubItems(1))
   Call m_oProgressMgr.ThreadPriority(cur, "NORMAL")
Next cur

But, I don't have much knowledge in how thread programming works. But my problem is if there are

more no. of pages to extract email addresses, the following block of code was never executes,

which implements next task..

Private Sub m_oProgressMgr_ProgressChange(ByVal objectID As Long, ByVal Progress As String)
    If Progress <> "" Then
        Call Mpro_getdetails_res(Progress, objectID)
    End If
End Sub

When I debug the procedure, it never executed. My rest of the task has to doing that one.

Private WithEvents m_oProgressMgr As clsProgressMgr

Because ProgressChange is an event in clsProgressMgr class, then how can I known this event will

be fired?

If only one page is there to extract email messages, then this event will raise automatically.

So, what is the solution for more no. of pages?

Plz give me a solution for this...

With regards

S


 
Old May 27th, 2005, 03:56 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello

check this link, its not the working application
but it contains the source code for processing the
email reading.

http://www.geocities.com/raghavendra...mailReader.zip

Hope it will helps. This we are using here.


With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread was being aborted acko ASP.NET 1.0 and 1.1 Basics 15 March 26th, 2014 02:52 AM
By Default Servlet is Single or Multi-Thread Model bikash Servlets 6 September 3rd, 2009 02:35 PM
Which Thread to use and How peace2007 ASP.NET 1.0 and 1.1 Professional 0 September 23rd, 2007 03:24 AM
a Thread argument beccali Java Basics 1 February 21st, 2007 06:12 AM
multi-multi-multiple Insert with subquery??? jmjyiannis SQL Server 2000 1 May 5th, 2006 02:20 PM





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