Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 1.4

COLUMN

Object-Oriented Thinking

Issue: 1.4 (February/March 2003)
Author: Charles Yeomans
Author Bio: Charles Yeomans is a software developer in Lexington, Kentucky
Article Description: No description available.
Article Length (in bytes): 5,236
Starting Page Number: 36
Article Number: 1418
Related Web Link(s):

http://developer.java.sun.com/developer/TechTips/2000/tt0124.html

Excerpt of article text...

A fundamental task of any modern object-oriented language is that it handle memory management. REALbasic performs this task using a scheme called reference counting. For every object created, RB keeps a count of references to that object; when the count reaches 0, RB destroys the object and reclaims the memory used.

Reference counting has a notable weakness; it cannot reclaim circular structures. If one or more objects refer to each other, then their reference counts will never go to 0, and so their memory will never be reclaimed by RB. Here is perhaps the simplest possible example.

Sub LeakOneObject()

dim person as cPerson

...End of Excerpt. Please purchase the magazine to read the full article.