Article # 436, added by Geoworks, historical record
| first | previous | index | next | last |

When to free a dynamic visMoniker on a Vis object.



Q. In a visual gadget I am calling self::MSG_VIS_CREATE_VIS_MONIKER
   to create a visual moniker chunk from a char*. I want the object
   to clear the chunk containing the moniker from memory when it
   receives MSG_VIS_DESTROY. Where is the best place to do this?

A. MSG_META_FINAL_OBJ_FREE is the preferred solution, but it would
   probably be okay earlier on too.