Click here to Skip to main content
15,902,492 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Exception Handling In Debug And Release Modes Pin
ednrgc9-Jan-07 4:44
ednrgc9-Jan-07 4:44 
GeneralRe: Exception Handling In Debug And Release Modes Pin
Not Active9-Jan-07 4:46
mentorNot Active9-Jan-07 4:46 
GeneralRe: Exception Handling In Debug And Release Modes Pin
ednrgc9-Jan-07 4:48
ednrgc9-Jan-07 4:48 
AnswerRe: Exception Handling In Debug And Release Modes Pin
Pete O'Hanlon9-Jan-07 4:10
mvePete O'Hanlon9-Jan-07 4:10 
AnswerRe: Exception Handling In Debug And Release Modes Pin
Not Active9-Jan-07 4:26
mentorNot Active9-Jan-07 4:26 
AnswerRe: Exception Handling In Debug And Release Modes Pin
Pete O'Hanlon9-Jan-07 4:53
mvePete O'Hanlon9-Jan-07 4:53 
AnswerRe: Exception Handling In Debug And Release Modes Pin
just3ala29-Jan-07 20:48
just3ala29-Jan-07 20:48 
GeneralRe: Exception Handling In Debug And Release Modes Pin
Pete O'Hanlon9-Jan-07 23:20
mvePete O'Hanlon9-Jan-07 23:20 
just3ala2 wrote:
Still no1 answered


Errm. No, lots of people answered. They just didn't give you the answer that you wanted.

What you were talking about was the TRY/CATCH macros in Visual C++. These were compiled out of release builds because they effectively mapped in as:

#ifdef DEBUG
try
{
#endif

and so on. Now, as has been stated earlier, it is a bad idea to have debug code that does one thing and release code that does another. If you have an exception, you need to catch it and deal with it.

What you did wrong was to design your application to have try/catch in every method. This is normally bad design. Consider the following sample:

public void SetMyValue(string value)
{
    try
    {
       _myValue = value;
    }
    catch (Exception ex)
    {
      // Log the exception.
    }
}

What exception are you going to get here?



the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

Questionsending class between two website Pin
mm3109-Jan-07 3:02
mm3109-Jan-07 3:02 
QuestionHow To Dynamically Call a Webservice? Pin
sstocker9-Jan-07 2:57
sstocker9-Jan-07 2:57 
AnswerRe: How To Dynamically Call a Webservice? Pin
led mike9-Jan-07 5:00
led mike9-Jan-07 5:00 
GeneralRe: How To Dynamically Call a Webservice? Pin
sstocker9-Jan-07 5:06
sstocker9-Jan-07 5:06 
GeneralRe: How To Dynamically Call a Webservice? Pin
led mike9-Jan-07 5:20
led mike9-Jan-07 5:20 
QuestionHow to look into directories and files of a unix box from a windows machine through VB.NET or C#.NET Pin
gknath9-Jan-07 2:13
gknath9-Jan-07 2:13 
Questionsubreport export in vs.net 2005 gives problem Pin
Suresh19799-Jan-07 2:10
Suresh19799-Jan-07 2:10 
QuestionServer Error in '/' Application. Pin
Atul Kharecha9-Jan-07 2:01
Atul Kharecha9-Jan-07 2:01 
AnswerRe: Server Error in '/' Application. Pin
Ghazi H. Wadi9-Jan-07 3:40
Ghazi H. Wadi9-Jan-07 3:40 
AnswerRe: Server Error in '/' Application. Pin
ednrgc9-Jan-07 3:45
ednrgc9-Jan-07 3:45 
GeneralRe: Server Error in '/' Application. Pin
Atul Kharecha9-Jan-07 4:00
Atul Kharecha9-Jan-07 4:00 
GeneralRe: Server Error in '/' Application. Pin
ednrgc9-Jan-07 4:02
ednrgc9-Jan-07 4:02 
Questionhow to .swf object to asp.net page Pin
Rmesh9-Jan-07 1:41
Rmesh9-Jan-07 1:41 
AnswerRe: how to .swf object to asp.net page Pin
Pete O'Hanlon9-Jan-07 1:46
mvePete O'Hanlon9-Jan-07 1:46 
AnswerRe: how to .swf object to asp.net page Pin
Khan.Bangash9-Jan-07 1:47
Khan.Bangash9-Jan-07 1:47 
GeneralRe: how to .swf object to asp.net page Pin
DavidNohejl9-Jan-07 2:08
DavidNohejl9-Jan-07 2:08 
GeneralRe: how to .swf object to asp.net page Pin
Khan.Bangash9-Jan-07 2:14
Khan.Bangash9-Jan-07 2:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.