Getting Started
Setting Up
Studio Files
Class Library
Server Mappings
It's Alive!
Garbage
Creating Objects
Invoking Methods
Using Events

Tag Reference

Object Reference

Download

Mailing List

Other Links


The idea of garbage collection in OOP languages entails cleaning up your memory to make sure that no object references are hanging around in memory or open database connection are left open - things like that. However, cfObjects garbage collection is simply making sure that all of your objects are destroyed by calling a special method called destructor.cfm. We'll get into that a little later, but for now, all you need to do is create a file called OnRequestEnd.cfm in your application's root directory. In that you place a call to the CollectGarbage base tag.

Internal Host Deployments
<cf_cfoCollectGarbage>

Shared Server Deployments
<cfmodule template= "classes/cfoCollectGarbage.cfm">

Congratulations! You are now set up and are ready to start building your cfObjects application. The next step is to create your first class.











SourceForge.net Logo