You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that is not the best solution. The real question, however, is - what to do if a factory throws an exception? There is probably a no clean way to continue execution.
No, you're right. There is no clean way.
For me, if possible and not having thought too much about it, could we just clean up the objects that are cleaning and execute the OnTerminate event (if there is one)?
See example code:
Results in memory leak - TBits, TOmniIntegerSet and TOTPWorkItem, TOmniTask (run above in console to see details)
The text was updated successfully, but these errors were encountered: