Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBlackMoons

Posted 25 September 2013 - 07:51 PM

Ah, Then how should I detect when calling Release() results in a script exception and script execution of destructors being abandoned early?

 

I do understand that an exception in a destructor is a very bad thing that should be avoided at all costs due to potential for resource leaks, but that is exactly why I need to detect when it occurs so I can report the error and shut down the program so the code itself can be fixed.


#2BlackMoons

Posted 25 September 2013 - 07:50 PM

Ah, Then how should I detect when calling Release() results in a script exception and script execution being abandoned early?

 

I do understand that an exception in a destructor is a very bad thing that should be avoided at all costs due to potential for resource leaks, but that is exactly why I need to detect when it occurs so I can report the error and shut down the program so the code itself can be fixed.


#1BlackMoons

Posted 25 September 2013 - 06:36 PM

Ah, Then how should I detect when calling Release() results in a script exception and script execution being abandoned early?


PARTNERS