I was developing a website by using c# with .net framework 4. OO concepts have been implemented. Each layer has some Try Catch blocks used to handle different errors and return different error messages. I found that it getting slower when loading as the try catch block getting more and more. I wonder this is because why. Any alternative solution? Correct me if I am wrong. Appreciate for any reply.
Share
There is nothing wrong with using try/catch blocks. They don’t alter performance. what does alter performance is throwing errors!
see web site below particularly:
http://msdn.microsoft.com/en-us/library/ms973839.aspx