Under what conditions is CCmdTarget::OnFinalRelease called?

前端 未结 2 1841
陌清茗
陌清茗 2021-01-23 01:20

The MSDN documentation for the CCmdTarget::OnFinalRelease method is pretty brief:

Called by the framework when the last OLE reference to or from the obj

2条回答
  •  無奈伤痛
    2021-01-23 01:33

    It doesn't appear that you ever call myEventHandler->Release(). Therefore, the last reference is never released, and OnFinalRelease is never called.

提交回复
热议问题