Archive for the 'SDK' Category
Dealing With Runaway Image File Size
If the size of your .image file has gotten very large without you having saved much work, it is probably due to lingering circular or global references to objects. These objects are referred to as zombies and can enter a zombie state for a host of reasons, but I’ll cover that on my Squeak blog later and link back to here. For now, let’s just deal with how to get rid of them. The first thing to do is to open a Workspace and evaluate:
CroquetHarness cleanup
Next save the image and see if the file size shrunk back to a reasonable level. If not you’ll either have to go zombie hunting or start from a clean image. Sometimes zombie hunting doesn’t produce the results you want. It may be that you’re not looking for the right kind of objects but in other cases, there are just too many zombies of different types and it’s taking a long time to figure out how to untangle them. In either case, if you don’t have any data or graphics bound only to the image, AND your code is reasonably well organized(this doesn’t have to mean Monticello - some projects can be managed well with change sets) the quickest solution may be to just dump the code and load it into a clean image. However, one often learns valuable lessons while zombie hunting so there’s good reason to learn some basic techniques. Read more
No comments