I wrote a COM today, I need to support the transaction. After completing a method, I want to test whether the transaction is effective, so I add a rollover function setabort in the middle, when I run, I found that the transaction did not roll back? ! I want to think that it may be that the transaction context ObjectContext is empty, and a piece of code is tested, it is empty. .
So I have to get the context "getObjectContext), this time I can roll back, I don't know what Delphi5 transaction is going. I discovered that the system variable ObjectContext is also the context obtained by getObjectContext. Why will ObjectContext empty?
Which boss is more familiar with Delphi's teaching, I have a big head, depressed. .