Type: info
Title: lazy deletion of Menus and Windows
Posted by: [EMAIL PROTECTED]
Affected: [EMAIL PROTECTED],
Effective from: CWS fwk58
*Summary*
--------
+void Menu::doLazyDelete();
+void Window::doLazyDelete()
*Description*
-------------
To solve the problem of deleting an object while still being in a
handler of said object, there is now a mechanism for lazy object
deletion on Menu and Window. Calling doLazyDelete() on a Menu or
Window will cause the object to be destroyed when the event loop
reaches a nest count of zero, that is if all nested Yield() or
Reschedule() calls have returned to the main loop itself (e.g. after a
Dialog has executed).
Destroying the object prematurely (e.g. by "delete <WindowPtr>") will
remove the object again from the lazy deletion list to prevent
duplicate deletion.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]