Some code would probably help, otherwise we're flying blind.

Adam..

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Vertes
Sent: Monday, January 08, 2007 1:21 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Threading in ASP.NET

*Hello List,*

    Happy New Year !  I'm having some difficulties with threading in
ASP.NET.
I'm working on an ASP.NET app that upon Page_Load() goes out and does WMI
queries on a number of remote machines to retrieve their status at that
moment.  When I'm not using threading and and performing these queries one
after the other (asynchronously) everything works great.  I get a snapshot
of the remote machines back but it takes a while (about 30 seconds) to
generate the page.  Since this application would be the perfect candidate to
speed up up using threading I sat down and added the threading code but for
some reason my threads seem to be terminating before the WMI query is back
with results.  The only way I can retrieve useful results is if I implement
a busy wait inside my code and hope that all the WMI queries come back
before the busy wait completes.  Since this is my first attempt at using
threading within ASP.NET I assume I'm missing someone.  Could anyone give me
a hint as to what I'm doing wrong ?  Thanks in advance...

-Pete

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.7/619 - Release Date: 1/7/2007
6:29 PM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.7/619 - Release Date: 1/7/2007
6:29 PM
 

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to