RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMtsDataModule.OnDeactivate Event

Occurs when an instance of TMtsDataModule is deactivated.

Pascal
property OnDeactivate: TNotifyEvent;
C++
__property TNotifyEvent OnDeactivate;

Write an OnDeactivate event handler to take specific action when COM+ or the MTS proxy releases an instance of the MTS data module. Use this method to close any database connections that were opened when the MTS data module was activated. Database connections must not be left open after the MTS data module is deactivated.

Note: In traditional COM+ and MTS programming, objects release their context object when they are deactivated. However, TMtsDataModule handles this task automatically.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!