Cleaning up after my dialog is done.

Started by mr nick, March 27, 2009, 05:54:50 AM

Previous topic - Next topic

mr nick

This may be a dumb question but here goes anyway...

When I have used a dialog box and finished with it, I close it down and unload the project but as part of the lisp file that controls it, I dozens of 'commands' defined which then stay resident even though the dialog is now unloaded from the system. Is there a clean and simple way of 'un-defining' all these commands or do you just live with them being resident in your session until you close down?

owenwengerd

Generally there is no harm just leaving them defined. The OS will reclaim the physical memory by paging them out until they are needed again. If your dialog is a modal dialog, you can declare the event handler function names as local variables to the main function and define them at runtime inside the function (so that they automatically get reset when the function exits), but even this is usually not worth the effort.
Owen Wengerd (Outside The Box) / ManuSoft