|Home > Target Connection Mechanism > Disconnecting from a target > Deleting pointers to registered callbacks|
A caller typically registers at least one callback object of type
CADICallbackObj to a connected target.
To avoid any access violations from the target after a caller has disconnected, the essential first step in disconnecting is to remove the pointers to all registered callback objects of the caller.
After removal of the callback object pointers, no additional
action is required by the caller on the target because the cleanup
CADI objects is managed by the underlying