Do not issue TDWMApply while holding locks on any TDWM database tables. This causes a self-deadlock condition because the database must read the TDWM database tables to perform this apply.
Using the TDWMApply procedure, you can only apply changes to the active rule set.
This procedure activates all rules in the database for the category being applied.