Page 1 of 1

Adding message to a TraceWindow

Posted: Thu 8. Aug 2013, 10:37
by dennisds
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):

Code: Select all

newMsg = tracer.Messages.Add()
I get the error

Code: Select all

"(-2147352567, 'Ausnahmefehler aufgetreten.', (0, None, None, None, 0, -2147418113), None)"
=> "Schwerwiegender Fehler".
The code

Code: Select all

print("Count:", tracer.Messages.Count)
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

Re: Adding message to a TraceWindow

Posted: Mon 12. Aug 2013, 11:45
by K.Wolf
Hi,

your code should work, but indeed it doesn't. After testing this myself I can only say this is a bug.
Will be fixed in the upcoming version 5.3.3.