Consultor Eletrônico



Kbase P45300: Dynamics: Cannot subscribe to event exitObject published by
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/30/2003
Status: Unverified

FACT(s) (Environment):

Dynamics 2.0A

SYMPTOM(s):

Dynamics: Cannot subscribe to event exitObject published by toolbar button

A subscription to a published exitObject cannot be made successfully. Before any custom code can respond to the publish, the container destroys all objects.

CAUSE:

exitObject cannot be overridden in a container window and it cannot be manually subscribed to in the container either. But this doesn't make much sense because the container already responds to exitObject and runs destroyObject in all contained objects in order to close them.

FIX:

All contained objects are subscribed to exitObject if not directly then indirectly through destroyObject. In order to resolve the problem exitObject can be overridden in the contained objects, or destroyObject can be overridden in the contained objects and the container.