I was believing the release message was called when objet are garbage collected. It appears it is not the case. What is the standard way to do some clean up before forgetting about objet? Should it be done 'by hand' before?
Hilaire
Am 30.12.2005 um 10:05 schrieb Hilaire Fernandes:
I was believing the release message was called when objet are garbage collected. It appears it is not the case. What is the standard way to do some clean up before forgetting about objet? Should it be done 'by hand' before?
This is the common way, yes. If you have very specific needs (like if you must make 100% sure some OS resource is released even in the case of unanticipated errors) you might consider finalization:
http://minnow.cc.gatech.edu/squeak/664
- Bert -
squeak-dev@lists.squeakfoundation.org