Freeing up orphaned contexts.

Q&A's, tips, howto's
Post Reply
CaveGuy
Posts: 112
Joined: Sun Oct 13, 2002 3:00 pm
Location: Columbus Ohio
Contact:

Freeing up orphaned contexts.

Post by CaveGuy »

I again repeat myseld here in the New Forum .....

Now for something completily .... well at least no NaNs :)

How do I free up orphaned contexts without restarting the application?

I can (load) or (save) contexts just fine but how do free one up and release the orphans without restarting ?

IT is so close......

Please let me set it to nil or somthing.

Thanks again...
(bob)
bob@bradlee.org
Bob the Caveguy aka Lord High Fixer.

Lutz
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Freeing up orphaned contexts.

Post by Lutz »

You could use 'delete' to delete symbols and their contents. Or just nil the symbols, as you suggest, which would keep the symbols but free all the contents.

I.e. after having loaded the demo application 'Hanoi' from the Demo menu, you could do a:

(map delete (symbols 'Hanoi))

This would delete all symbols and contents in context 'Hanoi'

Lutz

PS: just post in the 'New Forum' only. Ryon set this up a couple of weeks ago for better posting of code, editing messages etc. The old forum is only here as a reference, to look up past stuff, etc..

Post Reply