Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2008, 01:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default ASP Apps keep running after stop

I've noticed something strange in the design environment when working with ASP applications: the STOP button does not seem to work the same way it does with Windows applications. And this is not simply caused by me confusing the STOP button with the PAUSE button, OK? PAUSE will not allow me to see the result of code changes - a rebuild is always necessary anyway, so I want to STOP execution, not PAUSE it.

While all of the browser windows are being closed as expected, it appears as though VS is retaining the current point of execution, call stacks, and variable values when STOP is pressed in the middle of execution. Clicking Play appears to try to rebuild (taking longer each time I do this), but suddenly the code starts running below the line where I clicked STOP earlier. There should be no way it can even get to this code at this point, yet it appears to continue running as though I clicked PAUSE instead of STOP.

Whether this is how it's supposed to work or not, it is forcing me to shut down and reopen VS when I have to do this. It's either that or wait until this code finishes executing, which takes a long time assuming it doesn't throw an error of some kind. This is a frustrating waste of time just to clear the call stack so it doesn't resume execution after STOP and PLAY are clicked!

So, is there some way to force VS to reset the stacks and variables when STOP is clicked so I don't have to go through this every time I stop execution? Did I accidentally turn on some option that equates the STOP button with the PAUSE button? Or am I stuck restarting VS when I want to do this because it's incapable of clearing it's execution stack otherwise?
 
Old April 11th, 2008, 12:15 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I have never seen this behavior in 6 years of working with visual studio. I think there is something else going on. If you hit stop, VS should detach all processes it attached to. If it was attached to I.E. then I.E. will likely close as well. You could try the "Debug -> Detach All" menu option. Perhaps it is not actually detaching everything it should be. However, I believe that the 'Play' button won't be active until all process are detached so it would be fairly obvious something is amiss.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Running C# apps on platforms without .NET ? DanCase C# 2005 1 May 12th, 2006 12:12 AM
Deploying ASP apps GuyB ASP.NET 1.0 and 1.1 Basics 1 November 30th, 2005 12:12 PM
stop macro from running on EVERY cell change!! forkliftpete Beginning VB 6 1 October 26th, 2005 07:36 AM
running .net apps w/o installing .net framework connect2sandep General .NET 2 June 24th, 2005 04:45 AM
DTS Running Until Non Stop Jane SQL Server DTS 2 February 29th, 2004 05:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.