473,378 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Tracking Application status

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
4 3278
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: | last post by:
Hi!!! I'm looking for an ASP.NET bug tracking web application. ´ Or some others that are based on the web. What kind of bug tracking applications used Microsoft to track bugs? Or what kind of...
8
by: NickName | last post by:
Hi, Say, you have two inter-dependent packages of pA and pB. With the successful execution of pA you would proceed to execute pB. And since they would perform some repeatitive tasks on regular...
6
by: A.M-SG | last post by:
Hi, We are developing a SmartClient application and we are planning to expose business objects layer to SmartClient application by using ASP.NET SOAP web services.
11
by: SKBodner | last post by:
Hello, I'm stumped and I'm hoping someone could help me figure out the best way to track daily attendance for the next 6-4 months. I have a list of 80 or so participants who should be attended...
1
by: bdockery | last post by:
So I figured out that if you use this html: http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=<TRACKING...
3
by: nghivo | last post by:
I attempted to synchronize async Ajax calls using the following JS blocks: ==================================================== function getXMLHTTPRequest() { try { req =...
0
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. ...
1
by: Becky99 | last post by:
In the database I'm working on (2003) I have a client table that includes a client status field, and I have a linked notes table that includes the note entry date, note type, and note details. Each...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.