Class TMessage
Unit
BaseMsg
Declaration
type TMessage = class(TObject)
Description
Base class for all message classesMessages are stored in specific pool (see TMessagePool) to speed-up allocation and avoid memory leaks.
As a consequence, messages can be created in such way: SomeObject.HandleMessage(TMessage.Create) without risk of a memory leak.
Restriction: do not use in messages classes fields of types which needs finalization (such as dynamic arrays or long strings). Use short strings instead.
Methods
Overview
Description
If you erroneously deallocate a meesage manually the overridden implementation of this method will signal you
Call this method if you don't want the message to be discarded
This method overridden to store messages in specific pool
Properties
Overview
Description
Message flags
|
Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com
|