By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,133 Members | 1,319 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,133 IT Pros & Developers. It's quick & easy.

Given STOP in debug mode, but still completing the execution.

P: n/a
Hi,

I am having a method that handles the click event of a button on
the page. This method will also send an email. Sending email comes
after several lines of code in the method. I was testing upper part of
the method, so i kept a break point in the upper part. The code
execution comes to a break in that point. I examined the values and
clicked "stop debugging" i.e., well before calling send email. But
strangely it continued to send the mail.

To make sure the it is continuing to execute the code, I thrown an
exception just before send email is called. I repeated the above
process. This time no mail was sent, as well as there is no page to
show my exception, since "stop debugging" closes the page.

This test showing me that "stop debugging" is not actually
stopping the execution immediately.

Is this the only way a ASP.Net can work? i.e., Can't stop
execution immediately.

I am using Framework 1.1 and VS.Net 2003 on Windows XP Pro.

Thanks,
Saran.

Oct 18 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.