Try...Catch Overuse?

Results 1 to 2 of 2

Thread: Try...Catch Overuse?

  1. #1
    Join Date
    Dec 1969

    Default Try...Catch Overuse?

    I remember reading an article on the Try..Catch implementation. I thought I remember a warning about not "overusing" this process. I cannot remember if the warning was for coding format purposes or if there was an internal architecture reason for it. Has anyone else heard of this warning and the reason behind it?<BR><BR>Thanks,<BR>Dave

  2. #2
    Join Date
    Dec 1969

    Default RE: Try...Catch Overuse?

    Sure...There are performance penalties that you incur when you add error handling structures to your code. It&#039;s worth it, if you have code that could cause trouble, such as connections to a database, or reading or writing to a file, for instance, but don&#039;t put try/catches where you don&#039;t need them. Just use common sense, really, and you should be ok.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts