stopping a process
stopping a process
stopping a process
stopping a process
stopping a process
stopping a process stopping a process stopping a process stopping a process stopping a process stopping a process stopping a process stopping a process
stopping a process stopping a process
stopping a process
Go Back  Xtreme Visual Basic Talk > > > stopping a process


Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2010, 04:53 PM
billbrunt billbrunt is offline
Newcomer
 
Join Date: Jul 2010
Posts: 1
Default stopping a process


Hi -

I'm new to VB programming....4 days so please forgive this silly question. I want to have a process running which is continually scanning various conditions and I have this part working. I want to be able to click a button to stop this. The only way I could think to do was to have my main program spawn another process. That process would read a file every x seconds which they main program writes to. If the file being written to meets a certain criteria then exit.

I would think there's a way to have a sub running in vb which responds to an interrupt. I'm sure this is silly question so please let me know the error my ways.

- Bill
Reply With Quote
  #2  
Old 07-31-2010, 09:46 PM
Qua's Avatar
Quastopping a process Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

You're talking about communication between two applications where the second application will respond to an event happening within the first one? I.e. closing down when the button's click event is triggered.

I would suggest a different take. Instead of making the second application, well, an application then create it as a windows service. Windows services are easy to both start, stop, and pause from external applications and they are well-suited for operations that require no interface and needs to be running at all times without user-interaction. Visual Studio allows you to create services just like your create normal applications.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
stopping a process
stopping a process
stopping a process stopping a process
stopping a process
stopping a process
stopping a process stopping a process stopping a process stopping a process stopping a process stopping a process stopping a process
stopping a process
stopping a process
 
stopping a process
stopping a process
 
-->