GEOS SDK TechDocs
|
|
6 Visible Layers and 32-Bit Graphics
|
8 Creating Specific UIs
MSG_VIS_VUP_EC_ENSURE_WINDOW_NOT_REFERENCED, MSG_VIS_VUP_EC_ENSURE_OBJ_BLOCK_NOT_REFERENCED, MSG_VIS_VUP_EC_ENSURE_OD_NOT_REFERENCED
VisClass
provides three messages you can use for special error checking. These three messages are provided especially to make sure that all objects being destroyed or removed will be destroyed cleanly. The default handlers for these messages should cause a fatal error if their criteria are not met.
void MSG_VIS_VUP_EC_ENSURE_WINDOW_NOT_REFERENCED(
WindowHandle window);
This message travels up the visible object tree, ensuring that the window handle passed is not stored anywhere that it might cause trouble. This message may be used when a window is being destroyed and its handle is about to be freed.
Source: Unrestricted.
Destination: Any visible object in the affected visible tree.
Parameters:
window
The handle of the window being destroyed.
Return: Nothing--if it returns, no error was encountered.
Interception: Do not intercept this message.
void MSG_VIS_VUP_EC_ENSURE_OBJ_BLOCK_NOT_REFERENCED(
MemHandle objBlock);
This message travels up the visible object tree, ensuring that the memory handle (the handle of an object block) passed is not stored anywhere that it might cause trouble. This message may be used just before the object block's handle is freed to ensure that no stale references will remain.
Source: Unrestricted.
Destination: Any visible object in the affected visible tree.
Parameters:
objBlock
The handle of the block being freed.
Return: Nothing--if it returns, no error was encountered.
Interception: Do not intercept this message.
void MSG_VIS_VUP_EC_ENSURE_OD_NOT_REFERENCED(
optr object);
This message travels up the visible object tree, ensuring that the optr passed is not stored by any objects in the tree. This message may be sent when the object is being destroyed; any objects methods encountering a match between a stored optr and the passed optr should force a fatal error.
Source: Unrestricted.
Destination: Any visible object in the affected visible tree.
Parameters:
object
The handle of the object being destroyed.
Return: Nothing--if it returns, no error was encountered.
Interception: Do not intercept this message.
GEOS SDK TechDocs
|
|
6 Visible Layers and 32-Bit Graphics
|
8 Creating Specific UIs