473,624 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Process continues after stop

Can somebody explain to me why my process continues to run after I halt
execution? This plays havoc with debugging. I expect to be starting a new
instance at the beginning of a loop and the first break point hit is
thousands of itterations into the process (from a previous instance). I get
a very random step behavior. Know I am watching a database continue to be
updated 10 minutes after I stopped the front-end process. I have to stop IIS
to halt execution.

Chip
Feb 9 '06 #1
4 1953
How do you stop the process?

You should use Response.IsClie ntConnected to see if the browser stills
there, and in case of false, abort the thread.

"Chip" <ch**@intradata .com> wrote in message
news:e3******** *****@TK2MSFTNG P15.phx.gbl...
Can somebody explain to me why my process continues to run after I halt
execution? This plays havoc with debugging. I expect to be starting a new
instance at the beginning of a loop and the first break point hit is
thousands of itterations into the process (from a previous instance). I
get a very random step behavior. Know I am watching a database continue to
be updated 10 minutes after I stopped the front-end process. I have to
stop IIS to halt execution.

Chip

Feb 10 '06 #2
I'm stopping the process within the VS 2003 dev environment.by pressing the
STOP button. Your advice sounds good, but should VS be stopping the process
when it's told to?

"Mateus Padovani Velloso" <ma****@flag.co m.br> wrote in message
news:Oe******** *****@TK2MSFTNG P14.phx.gbl...
How do you stop the process?

You should use Response.IsClie ntConnected to see if the browser stills
there, and in case of false, abort the thread.

"Chip" <ch**@intradata .com> wrote in message
news:e3******** *****@TK2MSFTNG P15.phx.gbl...
Can somebody explain to me why my process continues to run after I halt
execution? This plays havoc with debugging. I expect to be starting a new
instance at the beginning of a loop and the first break point hit is
thousands of itterations into the process (from a previous instance). I
get a very random step behavior. Know I am watching a database continue
to be updated 10 minutes after I stopped the front-end process. I have to
stop IIS to halt execution.

Chip


Feb 10 '06 #3
When you're not using VS and open the page in the IE, a loop keeps executing
even if you close IE, right? And as checking the Response.IsClie ntConnected
can avoid that, and I'm supposing that the same behavior is happening when
you debug thru VS.

Then maybe the solution is the same.

I think that the big question you should answer is: What I want to do in my
application when the user closes the browser during the loop? Should it stop
processing?

If so, the Response.IsClie ntConnected will solve both issues (debug and
runtime).

"Chip" <ch**@intradata .com> wrote in message
news:Oa******** ******@TK2MSFTN GP14.phx.gbl...
I'm stopping the process within the VS 2003 dev environment.by pressing
the STOP button. Your advice sounds good, but should VS be stopping the
process when it's told to?

"Mateus Padovani Velloso" <ma****@flag.co m.br> wrote in message
news:Oe******** *****@TK2MSFTNG P14.phx.gbl...
How do you stop the process?

You should use Response.IsClie ntConnected to see if the browser stills
there, and in case of false, abort the thread.

"Chip" <ch**@intradata .com> wrote in message
news:e3******** *****@TK2MSFTNG P15.phx.gbl...
Can somebody explain to me why my process continues to run after I halt
execution? This plays havoc with debugging. I expect to be starting a
new instance at the beginning of a loop and the first break point hit is
thousands of itterations into the process (from a previous instance). I
get a very random step behavior. Know I am watching a database continue
to be updated 10 minutes after I stopped the front-end process. I have
to stop IIS to halt execution.

Chip



Feb 11 '06 #4
By the way, don't expect VS stops IIS process because the behavior is
different than a Windows Form application.

VS 2005 offers a different approach, allowing you to test the application
without having to use IIS.
"Chip" <ch**@intradata .com> wrote in message
news:Oa******** ******@TK2MSFTN GP14.phx.gbl...
I'm stopping the process within the VS 2003 dev environment.by pressing
the STOP button. Your advice sounds good, but should VS be stopping the
process when it's told to?

"Mateus Padovani Velloso" <ma****@flag.co m.br> wrote in message
news:Oe******** *****@TK2MSFTNG P14.phx.gbl...
How do you stop the process?

You should use Response.IsClie ntConnected to see if the browser stills
there, and in case of false, abort the thread.

"Chip" <ch**@intradata .com> wrote in message
news:e3******** *****@TK2MSFTNG P15.phx.gbl...
Can somebody explain to me why my process continues to run after I halt
execution? This plays havoc with debugging. I expect to be starting a
new instance at the beginning of a loop and the first break point hit is
thousands of itterations into the process (from a previous instance). I
get a very random step behavior. Know I am watching a database continue
to be updated 10 minutes after I stopped the front-end process. I have
to stop IIS to halt execution.

Chip



Feb 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2365
by: LarsenMTL | last post by:
Python Users: Based on previous suggestions from this group, I'm attempting to write a python CGI that takes input from an HTML form, invokes a second python script using this input, tells the user that their process has started, ends the cgi output and later emails the results of the invoked script. My problem is that no mater how I invoke the 2nd script (spawnlp with P_NOWAIT, system with &, etc..) the CGI caller continues to run...
6
1991
by: downwitch | last post by:
OK, the last time didn't get an answer, let's see if I can explain it better. (Someone else here _must_ have done this at some point?) I have a progress-meter type thing set up to follow the compacting of a database, using Michael Kaplan's COM add-in. The plug-in exposes an event as the the "pieces" are completed; this event includes a Cancel argument, identical in nature to forms' BeforeUpdate and BeforeDelConfirm events, etc.--set it...
10
15906
by: Tony | last post by:
I am running an application called AcroComm.exe to poll time clocks here at our company. I have written a small C# app that will poll the clocks based on information found in a DB. My problem is that AcroComm will sometimes stop polling in the middle of the process and terminate. The programing manual for the app says that it sends a code to the operating system when it is done that tells what has happend like the following: 0 ...
3
8285
by: Max | last post by:
I use late binding to have my program compatible with multiple versions of Microsoft Outlook. Here is a snipped of my code that launches Microsoft Outlook and displays it to the user: Type objClassType = Type.GetTypeFromProgID("Outlook.Application", true); object objApp_Late = Activator.CreateInstance(objClassType); // .... code here that does something .... //
10
3057
by: Lars-Erik Aabech | last post by:
Hi! This issue have been discussed a lot, but I haven't found a solution that applies to ASP.NET. I have a library which does some operations on Excel documents, and it will be used in an ASP.NET application. If I use the library in a Forms application, the Excel process is removed when the cleanup operations are done, but with ASP.NET all possible ways to clean up fails. The following code has been tried:
2
1760
by: ENathan | last post by:
I have a public sub in a class that does something like: If ValuesChanged() Then UpdateDatabase End If ValuesChanged and UpdateDatabase are Private functions within the class. My problem is, when I finish debugging ValuesChanged and click the stop debugging button, it appears the code continues behind these scenes and runs
335
11646
by: extrudedaluminiu | last post by:
Hi, Is there any group in the manner of the C++ Boost group that works on the evolution of the C language? Or is there any group that performs an equivalent function? Thanks, -vs
0
1727
by: =?Utf-8?B?Um9i?= | last post by:
I've a requirement to monitor when certain applications are started. I'm using WMI called from VS Stusio 2005 in VB to trap Excel and Word starting. I've written the following console application which wires up 4 events to trap Excel/Word Start/Stop events. The application works fine for Excel but Word behaves strangely. When I start an instance of Word I get the correct message displayed in the console. When I start a second instance of...
6
16902
by: itsraghz | last post by:
Dear All, I have an issue with destroy() method of java.lang.Process class. All what I am trying to do is, controlling the execution of one program through another. Let's say, Program B has to be executed conditionally through Program A based on the commands it gets from the user. Let's say, we have two inputs, "start" and "stop" to drive the Program B. I have thought of various alternatives. (1) Using Thread to control the execution...
0
8240
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8680
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
8336
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
8482
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
7168
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...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.