Hi all, basically i have a WMI scanner which i install as a windows
service. using .NET remoting the service registers an object which
records the status of the scanner (ie how many assets its' scanned so
far etc..)

I then have a windows application which reads the status object to
display the progress of the scanner (ie which asset is it scanning and
an overall % complete)

This all works fine when i scan up to 50 assets but i am in the
process of load testing the scanner and am increasing the number of
scans to 100, 150 etc..

the scans do work but the windows application basically locks up for
the majority of the scan.

I have a thread on the scanner service which starts up the scan and
sleeps inbetween scans for x minutes.

the scanner itself uses a threadpool to scan all the assets on the
network and a thread to upload results to a webservice.

I am using a timer on the windows application to check the status
obejct every second and then display the results on the form, this
seems to be the bit that keeps locking up (only when lots of assets
are being scanned tho)

how can i keep my windows application responsive, no matter how many
assets i am trying to scan?

Re: Winform becomes unresponsive by Imran

Imran
Wed Oct 20 11:09:40 CDT 2004

Which timer control are you using? There are 3 timer controls in .NET -
System.Windows.Forms.Timer, System.Timers.Timer, System.Threading.Timer. The
Forms Timer runs on the same thread as the UI. So if you are in fact using
that timer and you have a time consuming process within your tick event, the
UI would lock up. Is this the case for you?


hope that helps..
Imran.

"CannonFodder" <gavinj@sol-tec.com> wrote in message
news:7f7e8031.0410200258.4f0c2cb4@posting.google.com...
> Hi all, basically i have a WMI scanner which i install as a windows
> service. using .NET remoting the service registers an object which
> records the status of the scanner (ie how many assets its' scanned so
> far etc..)
>
> I then have a windows application which reads the status object to
> display the progress of the scanner (ie which asset is it scanning and
> an overall % complete)
>
> This all works fine when i scan up to 50 assets but i am in the
> process of load testing the scanner and am increasing the number of
> scans to 100, 150 etc..
>
> the scans do work but the windows application basically locks up for
> the majority of the scan.
>
> I have a thread on the scanner service which starts up the scan and
> sleeps inbetween scans for x minutes.
>
> the scanner itself uses a threadpool to scan all the assets on the
> network and a thread to upload results to a webservice.
>
> I am using a timer on the windows application to check the status
> obejct every second and then display the results on the form, this
> seems to be the bit that keeps locking up (only when lots of assets
> are being scanned tho)
>
> how can i keep my windows application responsive, no matter how many
> assets i am trying to scan?