i want to add Undo/Redo functionality to my OCAF-based project. Functiondrivers etc. are working correctly, but it seems i cannot start new commands. TDocSTd_Document->NewCommand never returns (but also dosn't give an error). Shouldn't this minimal code work?
Handle(OcafApp) app = new OcafApp();
app->NewDocument ( "Standard", doc );
//execute the command
As I'm quite new to OCC it's possible that I miss something funtamental about the initialising, but couldn't find any hint in the docs and papers.
Any help would be appreciated.