Tracking Application status

  • Thread starter Thread starter Kalyani Vezzu
  • Start date Start date
K

Kalyani Vezzu

Hello all,
I tried to write a program to search files in the
given directory in Vb .net using directoryinfo object in
a recursive function without multithreading. When the
directory contains thousands and thousands of files my
application remains in 'not responding' state without any
further progress. I need to track this situation
programatically. In otherwords is there any way in
VB .net to get the status of an application when it is
running? Hope my question is clear and I'll get the
answer from any of you.

Thanks,
Kalyani.
 
Hi,

When running a function that takes a long time windows assumes it is
not responding. If you are not going to use multithreading add an
application.doevents call to the function so the machine doesnt appear
locked.

Ken
 
Hi there,

You may want to look at my file object that I have created some time
back,

http://members.lycos.co.uk/nickpatemanpwp/soft-libx.htm

This gathers files to specification, and it really simplifies the whole
process. The object raises two events for custom yielding,

Public Event processCycleComplete(ByVal iEllapsed As Integer)
Public Event processSubCycleComplete(ByVal iEllapsed As Integer)

Just place an application.doevents in the ones you want to yield in, or
yield in both to prevent any locking up. I a *slightly* newer version of
this class all of the time, it really does help to interact with the file
system allot easier. I hope this helps.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Hello,

Kalyani Vezzu said:
I tried to write a program to search files in the
given directory in Vb .net using directoryinfo object in
a recursive function without multithreading.

Why not use multithreading?!
 
Back
Top