Adding message to a TraceWindow
Posted: Thu 8. Aug 2013, 10:37
Hello,
is it possible to add a new message to the TraceMessage collection of a TraceWindow?
If I try the following code (using Python and COM):
I get the error
The code succeeds, so I am able to access the message list of the Tracer object.
However, it would be nice to extend the message list of a TraceWindow in order to implement custom message filter which e.g. inspects the message data.
Thank you for your help
is it possible to add a new message to the TraceMessage collection of a TraceWindow?
If I try the following code (using Python and COM):
Code: Select all
newMsg = tracer.Messages.Add()
Code: Select all
"(-2147352567, 'Ausnahmefehler aufgetreten.', (0, None, None, None, 0, -2147418113), None)"
=> "Schwerwiegender Fehler".
Code: Select all
print("Count:", tracer.Messages.Count)
However, it would be nice to extend the message list of a TraceWindow in order to implement custom message filter which e.g. inspects the message data.
Thank you for your help