AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkObject.Create Constructor

Creates a new AGK object with an owner.

Syntax
Pascal
constructor Create(const Owner: TAgkObject);
Parameters 
Description 
const Owner: TAgkObject 
the owner of the new object (can be nil). 

If you set the owner of the object, that owner will automatically free the object when the owner is destroyed. You can still destroy the object manually to free it earlier. When you pass nil as the Owner parameter, then it becomes your reponsibility to destroy the object when you no longer need it.

Copyright (c) 2012. All rights reserved.