473,769 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3294
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.doe vents 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 processCycleCom plete(ByVal iEllapsed As Integer)
Public Event processSubCycle Complete(ByVal iEllapsed As Integer)

Just place an application.doe vents 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
2671
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 web based bug tracking application would you suggest me? best regards, gicio
8
3168
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 basis they are scheduled as a job. But you don't want to the job to make attempt to run pB if you know pA has failed and you want to nofiy sys adm of it. And let's say pA has log option checked (so, there's a log file for it). Now, it would...
6
2135
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
30721
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 training on a daily basis and am tracking if they attended, have an unexcused absence, or are absence with an excuse. At the end of the month, I plan to print out reports on those who have missed more than one day with an unexcused absence. My...
1
16222
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 NUMBER HERE>&track.x=0&track.y=0 it will link you directly to the UPS tracking page for the specified tracking number. I think it would be really cool to be able to click a tracking number record in a table and have it take you directly to the...
3
2758
by: nghivo | last post by:
I attempted to synchronize async Ajax calls using the following JS blocks: ==================================================== function getXMLHTTPRequest() { try { req = window.XMLHttpRequest ? new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP"); } catch (err) { } return req;
0
1799
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. TimeLive is available in two different flavors. Hosted version and downloadable version. Downloadable version required certain system requirement to install on local server. Whereas hosted version is already installed on our fully managed server on...
1
2147
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 client has multiple notes. Each time the client status is changed in the client table, I would like to have a note automatically created in the notes table that details the status change and the note type. For example: if the user changes the...
0
10208
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9857
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3952
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.