Subj : Re: Rollback Functions To : comp.programming From : John Date : Wed Oct 12 2005 10:01 am wrote in message news:1129090679.651771.305730@o13g2000cwo.googlegroups.com... >I propose a "rollback" function that logs and rollbacks all changes > caused by the call of a function. Particularly, it: > > - releases memory or other resources allocated; > - restores resources deleted; > - set back data modified; > > This could be a powerful debug technique we may call "Step Back". > > Yao Ziyuan > I believe Microsoft C 7 had a step back feature. There were rules about when it would work and when it wouldn't, but it worked enough that it was useful, I believe it always worked on the stack but would not work on the heap if the pointer was redirected so many times or something. I really liked it and was sorry to see it disapear in VC++. But in all honesty ... implimenting something like that in a modern debugger .... well .. I wouldn't want to have to figure it out! regards, John .