By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,760 Members | 955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,760 IT Pros & Developers. It's quick & easy.

Tracking Application status

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
----------------
"Kalyani Vezzu" <ka***********@hotmail.com> wrote in message
news:10****************************@phx.gbl...
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.

Nov 20 '05 #2

P: n/a
Nak
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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"Kalyani Vezzu" <ka***********@hotmail.com> wrote in message
news:10****************************@phx.gbl...
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.

Nov 20 '05 #3

P: n/a
Hello,

"Nak" <a@a.com> schrieb:
http://members.lycos.co.uk/nickpatemanpwp/soft-libx.htm


Nice site!

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

P: n/a
Hello,

"Kalyani Vezzu" <ka***********@hotmail.com> schrieb:
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?!

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.