It shows up as a process just like any other... So the sys admin could kill
it.
As far as debugging, same thing. Yes, it's more difficult, we're talking
about a much more entailed process here, but there are ways to debug and
watch any thread.
For what you're talking about doing it's the only way I can think of.
Because there is no web browser client / server combination in the world
that I know of that will run as long as you want it to.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Is it really wise to leave a thread running when the page has stopped
processing. I can definitely see the potential for problems such as being
hard to debug and not being under the control of the system administrator.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:ur**************@TK2MSFTNGP14.phx.gbl... Peter,
You should fire the code that does the processing in a separate thread
and then have the page poll for whether it's done using a meta refresh.
Here's an article on how to do so:
http://www.ftponline.com/vsm/2002_11...tures/chester/
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:u2**************@TK2MSFTNGP14.phx.gbl... You might want to change your architecture and maybe hand off the task
to something like a windows service.
The website should just be there to kick off the action and check the
status, the service would continue to work independent of IIS or IE.
"Rabbit63" <q.***@manyworlds.com> wrote in message
news:Ov*************@TK2MSFTNGP10.phx.gbl...
Hi:
There is a function in the code-behind of one my page, which will run a
long time (almost 9 hours). How can I make the page run so long?
In the codebehind, I set:
Page.Session.Timeout=54000
Page.Serever.ScriptTimeout=54000
But no use. It was terminated after ~4 hours.
What can I do?
Thanks
Q.