The following system events can be monitored:
The following example demonstrates how to monitor a low memory event.
class MyClass : public Node {
aevent lowMemoryEventReceiver;
MyClass() {
lowMemoryEventReceiver.Connect( Kernel()->LowMemoryEvent );
};
void OnEvent( const EventGate &cEvent ) {
if ( cEvent == LowMemoryEvent ) {
// free some buffers
}
}
};