I was reading up on exception handling tonight — looking for a way to prevent crashes in a Windows Service which sports a plugin architecture (whether or not the crashes should be prevented if there is a way) — when I found this code:
1
2
3
4
5
6
7
8
9
10
11
Resource resource = GetResource();
try
{
DoWork();
[...]