Home All Groups Group Topic Archive Search About

Build Release with VS2003 on machine

Author
11 Aug 2006 9:55 PM
Bob Day
Using VS 2003 and VB.net...

Does a build release react differently to an exception if it sees a debugger
(such as VS 2003) on the machine?

With a bad SQL connection string, the VS 2003 F5 debug and the debug build
handle it correctly - there error is correctly trapped and caught with an
try/catch.

With the same code in a build release, same error, I would expect it to
operate the same.  But instead, a dialog box come up saying
Would I like to launch a degugger? and VS2003  is an option.

The problem is probably something else, but I though I would check.

Thanks!
Bob

Author
13 Aug 2006 11:16 AM
Ken Tucker [MVP]
Bob,

        It shoud be caught in the try catch block in debug and release mode.
I would expect that you have an exception being thrown that is not inside of
a try catch block.   Post some code.

Ken
------------------------
Show quoteHide quote
"Bob Day" <Bob***@TouchTalk.net> wrote in message
news:%23tL8lDZvGHA.3912@TK2MSFTNGP03.phx.gbl...
> Using VS 2003 and VB.net...
>
> Does a build release react differently to an exception if it sees a
> debugger (such as VS 2003) on the machine?
>
> With a bad SQL connection string, the VS 2003 F5 debug and the debug build
> handle it correctly - there error is correctly trapped and caught with an
> try/catch.
>
> With the same code in a build release, same error, I would expect it to
> operate the same.  But instead, a dialog box come up saying
> Would I like to launch a degugger? and VS2003  is an option.
>
> The problem is probably something else, but I though I would check.
>
> Thanks!
> Bob
>