Skip to content

Check Try/Catch Sections #3

Description

@firefly2442

Make sure the Close() methods are inside a finally block so that it will always be executed.
When shutting connections down (or opening them) it is vital that they return to the state before the exception.

For example:

try { a(); b(); Close(); } catch (...) { }

If a() or b() throw an exception, it'll never be closed, for example...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions