Subj : Re: Rollback Functions To : comp.programming From : Duane Arnold Date : Wed Oct 12 2005 06:05 am yaoziyuan@gmail.com wrote in 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 thought that was a transaction server like a MS COM+ Server. I think Linux has something similar. Maybe, the transaction processing of ADO.NET that rolls back transactions fits this bill. Most database applications like MS SQL Server Oracle Sybase etc have transaction processing Commit and Rollback abilities. And all of it can be used in a debugging process of a program needing to write transactions. Why re-invent the wheel? Duane :) .