none
Try and Catch RRS feed

  • Question

  • hi all,

     

    i just want to confirm that is it try and catch method will cause a lot of memory usage?

    or it will cause any issues if using too many of this method?

     

    thanks 1st

    Thursday, April 26, 2007 2:32 AM

Answers

  • Using try catch is good practice to prevent your code from crashing from un expected events...

     

    What takes up the memory and slows your app down is the exceptions that are thrown.  

     

    To make better code try to avoid throwing exceptions in the first place but keep the try catch as your backup..........

    Thursday, April 26, 2007 3:36 AM

All replies

  • No, and you should use it as it is more structured than On error goto
    Thursday, April 26, 2007 3:32 AM
  • Using try catch is good practice to prevent your code from crashing from un expected events...

     

    What takes up the memory and slows your app down is the exceptions that are thrown.  

     

    To make better code try to avoid throwing exceptions in the first place but keep the try catch as your backup..........

    Thursday, April 26, 2007 3:36 AM