On 06/08/2013 at 11:24, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
I use try-catch-finally ALL the time when programming in Delphi and C#.
For my plugins in C++, I haven't used it so far. All the examples in the SDK, I find no such thing..(?)
Does it exist in C++?
Take this scenario
doc->StartUndo();
do_something
do_something_else
something_goes_wrong
do_the_final_thing
doc->EndUndo();
I am responsible for calling doc->EndUndo(), when I have called StartUndo(), right?
I am interested to know how you guys solve this.