473,327 Members | 1,892 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,327 software developers and data experts.

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 1931
How do you stop the process?

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

"Chip" <ch**@intradata.com> wrote in message
news:e3*************@TK2MSFTNGP15.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.com.br> wrote in message
news:Oe*************@TK2MSFTNGP14.phx.gbl...
How do you stop the process?

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

"Chip" <ch**@intradata.com> wrote in message
news:e3*************@TK2MSFTNGP15.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.IsClientConnected
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.IsClientConnected will solve both issues (debug and
runtime).

"Chip" <ch**@intradata.com> wrote in message
news:Oa**************@TK2MSFTNGP14.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.com.br> wrote in message
news:Oe*************@TK2MSFTNGP14.phx.gbl...
How do you stop the process?

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

"Chip" <ch**@intradata.com> wrote in message
news:e3*************@TK2MSFTNGP15.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**************@TK2MSFTNGP14.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.com.br> wrote in message
news:Oe*************@TK2MSFTNGP14.phx.gbl...
How do you stop the process?

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

"Chip" <ch**@intradata.com> wrote in message
news:e3*************@TK2MSFTNGP15.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
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...
6
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...
10
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...
3
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...
10
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...
2
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...
335
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
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...
6
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.