473,397 Members | 2,056 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,397 software developers and data experts.

VS2005 Executes Code After I Hit Stop

Hello,

I posted this in the C# group but thought maybe the better place would
be here since it is happening with website projects so please forgive
any cross posting.

In my website projects I can set a breakpoint, run the app, the
breakpoint gets hit, and I can step through or check some variables or
what not, and if I hit stop it appears that the rest of the method (and
any calling method) continues to execute. I know this because there are
sql calls being made (though they are on lines well after the line I
was on when I hit stop) and I can check the database and see that rows
were inserted/updated. As you can imagine, this is quite frustrating as
the whole reason I hit stop is that I *didn't* want to continue to do
work against the db. This never happened in VS2003 and only started
happening in VS2005 last week (I've been developing with it for several
months now).

Anybody else seen this? Any ideas are appreciated.

Jun 21 '06 #1
3 1385
dgk
On 21 Jun 2006 10:11:30 -0700, oh******@hotmail.com wrote:
Hello,

I posted this in the C# group but thought maybe the better place would
be here since it is happening with website projects so please forgive
any cross posting.

In my website projects I can set a breakpoint, run the app, the
breakpoint gets hit, and I can step through or check some variables or
what not, and if I hit stop it appears that the rest of the method (and
any calling method) continues to execute. I know this because there are
sql calls being made (though they are on lines well after the line I
was on when I hit stop) and I can check the database and see that rows
were inserted/updated. As you can imagine, this is quite frustrating as
the whole reason I hit stop is that I *didn't* want to continue to do
work against the db. This never happened in VS2003 and only started
happening in VS2005 last week (I've been developing with it for several
months now).

Anybody else seen this? Any ideas are appreciated.

That's interesting. I'm using a database called Cache and it seemed
that in debugging a website some data got written that wasn't supposed
to because I hit the square Stop Debugging button. This is VB in
VS2005. It seems like a line did execute that wasn't supposed to.

The way the Cache DB works is very different from SQL Server in that
I'm actually using a proxy object that is linked to the real object in
the Cache DB, not rows in a table. So I was setting properties on that
object but not executing the Save method which was a good three or
four lines further in the code. However the changed property values
were being persisted in the DB even though Save hadn't been hit yet.

I called up InterSystems (the Cache vendor) and spoke to a support guy
about it but then I couldn't duplicate it. So I assumed that it was
sunspots. But now you come along and claim that VS continued executing
code after stopping and that matches exactly what I saw.

Perhaps it has something to do with Finally? That code is supposed to
execute no matter what. Did you have a Finally involved somewhere?
Jun 22 '06 #2
The only thing the finally does for me is close the database
connection. So if it was the finally being run the only thing that
should happen is that the connection closes with no work being done.
BTW, when stepping through the debugger and you hit stop the finally
shouldn't run. At least, it never did in VS2003. A friend of mine had
said that VS2005 is much more threaded than previous versions and that
sometimes causes all sorts of weirdness so we thought that might have
something to do with it but I really hope not.

Also also, I'm in now way dinging VS2005. I think MS made a great tool
even better. I just wish I could figure this problem out and fix it.

dgk wrote:
On 21 Jun 2006 10:11:30 -0700, oh******@hotmail.com wrote:
Hello,

I posted this in the C# group but thought maybe the better place would
be here since it is happening with website projects so please forgive
any cross posting.

In my website projects I can set a breakpoint, run the app, the
breakpoint gets hit, and I can step through or check some variables or
what not, and if I hit stop it appears that the rest of the method (and
any calling method) continues to execute. I know this because there are
sql calls being made (though they are on lines well after the line I
was on when I hit stop) and I can check the database and see that rows
were inserted/updated. As you can imagine, this is quite frustrating as
the whole reason I hit stop is that I *didn't* want to continue to do
work against the db. This never happened in VS2003 and only started
happening in VS2005 last week (I've been developing with it for several
months now).

Anybody else seen this? Any ideas are appreciated.

That's interesting. I'm using a database called Cache and it seemed
that in debugging a website some data got written that wasn't supposed
to because I hit the square Stop Debugging button. This is VB in
VS2005. It seems like a line did execute that wasn't supposed to.

The way the Cache DB works is very different from SQL Server in that
I'm actually using a proxy object that is linked to the real object in
the Cache DB, not rows in a table. So I was setting properties on that
object but not executing the Save method which was a good three or
four lines further in the code. However the changed property values
were being persisted in the DB even though Save hadn't been hit yet.

I called up InterSystems (the Cache vendor) and spoke to a support guy
about it but then I couldn't duplicate it. So I assumed that it was
sunspots. But now you come along and claim that VS continued executing
code after stopping and that matches exactly what I saw.

Perhaps it has something to do with Finally? That code is supposed to
execute no matter what. Did you have a Finally involved somewhere?


Jun 22 '06 #3
I have the same problem. I'm using VS2005 Std. Ed. and while
debugging, even though you press 'stop', the code continues to execute,
writing to the database. I have the Try/Catch statements (but no
Finally)... very annoying when you're trying to test something.

My database server is remote, but debugging is always locally
processed, so I hope this gets fixed in future releases.

Jun 23 '06 #4

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

Similar topics

12
by: clintonG | last post by:
VS2005 2.0 Beta 2 noting I've posted (to no avail so far) to the somewhat deadzone at news://microsoft.public.vsnet.ide and am getting ants in my pants for some discussion about this issue. ...
17
by: Samuel | last post by:
Hi All, I am in the process of converting a VS 2003 project to VS 2005 project (VB.NET Class Library). It gives the error in TypeOf and DirectCast statements. It was working...
16
by: CMM | last post by:
Is it me or has anyone noticed that F1 is really dumb in VS2005. Since VB3 I have been able to click F1 on an ambiguous method in code and the IDE automatically determines the type based on the...
0
by: Richard | last post by:
When I run my web project in VS2005, the built-in development server pops up a bubble on the task bar showing which port is being used. No problem, except that it stays on the task bar even after I...
16
by: Edward Diener | last post by:
After spending more than a day reducing a complicated compiler bug to a simple case I reported it to the MSDN Product Feedback Center as a bug just now. However this bug is completely stymying my...
0
by: Bob | last post by:
Hi, I have a dataset that is filled OK and used as the datasource for a datagridview. A mouse click on the datagridview picks the row. When I attempt to alter one of the ItemArray values the...
6
by: ohnoonho | last post by:
Hey All, In my website projects I can set a breakpoint, run the app, the breakpoint gets hit, and I can step through or check some variables or what not, and if I hit stop it appears that the...
13
by: Bryan | last post by:
I am developing a VB project in VS2005 that has SP2 installed. This is the process that is causing a problem: Open VS2005, open the project Write some code in the code editor Run the project in...
5
by: Ryan Liu | last post by:
I have this problem: "cannot continue edit while debug in VS2005". I see the same tread after I search this topic in google, but none solutions works for me. So again, I ask here. Can someone...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.