G
Guest
Hello All
For reference
MyClass myClass = new MyClass()
myClass.MyMethod()
It appears that if you throw an application exception in MyMethod(), the myClass deconstructor will be bypassed. Can anyone confirm this please? I have a database layer class that disposes connections in the deconstructor, and I suspect the connections are staying open when exceptions occur elsewhere in the class..
Thanks
Doug
(note backwards email address!)
For reference
MyClass myClass = new MyClass()
myClass.MyMethod()
It appears that if you throw an application exception in MyMethod(), the myClass deconstructor will be bypassed. Can anyone confirm this please? I have a database layer class that disposes connections in the deconstructor, and I suspect the connections are staying open when exceptions occur elsewhere in the class..
Thanks
Doug
(note backwards email address!)