API Guides > ConceptRT 3.x
Runtime Checking

Namespace RuntimeCheck details. Functionalities for runtime check. More...

Detailed Description

Namespace RuntimeCheck details. Functionalities for runtime check.

Classes

struct  RuntimeCheckMessage
 RuntimeCheckMessage structure used by the EventRuntimeCheckMessage. More...
 

Functions

void DoRuntimeCheckMessage (PCChar8 message, PCChar8 sourceFileLine)
 Function to call to print out a DebugMessage. More...
 

Variables

Delegate< const RuntimeCheckMessage & > * EventRuntimeCheckMessage
 Global event - Call back - where to register to trace Debug message (blocking code permission violations, time critical violation, Exception in destructor, etc.) in your application. More...
 

Modules

 Assertion
 
 Context Time Critical
 
 Blocking code checking
 

Function Documentation

void DoRuntimeCheckMessage ( PCChar8  message,
PCChar8  sourceFileLine 
)

Function to call to print out a DebugMessage.

Will print out the message in the EventDebugMessage.

Parameters
messageThe debug message for the user.
sourceFileLineThe source file line.
Version
3.3 or greater feature

Variable Documentation

Delegate< const RuntimeCheckMessage & > * EventRuntimeCheckMessage

Global event - Call back - where to register to trace Debug message (blocking code permission violations, time critical violation, Exception in destructor, etc.) in your application.

Messages may be noticed only in DEBUG.

Note
To avoid reentrant call, non deterministic flag is set to false and BlockingCodePermission flag is set to default value until the callback has been executed.
Warning
The code branched to this event should not throw exceptions to outside since this event could be called in destructors.
Be aware of many threads can call this event in the same time. Concurrency acces on non thread safe objets must be done in your call back function or method.

Create a function for e.g

void MyEventMessageHandler(const RuntimeCheckMessage & message);

and branch it to the event using a DelegateFunction. You can also create a method (same prototype) and branch it with a DelegateMethod.

Version
3.3 or greater feature