When I use vtkWarningMacro in another thread in my writer class in Catalyst, I don’t have any issues.
However, when I use my writer in ParaView, to save a result, vtkWarningMacro stops abruptly the thread launched by my writer, in other words : it crashes the thread !
When I was developing in C++ under Windows, I remember that a crash produced in a thread stops the whole application, here I don’t understand how a thread can be stopped abruptly and the program continue its execution.
In the callstack I can see that vtkOutputWindow is handled differently than in Catalyst (that’s normal, as messages are displayed in a widget).
I want to know why I can’t use vtkWarningMacro in a thread in ParaView client and how to fix that.
Is it possible to create a small example to reproduce this issue? If so, it would be great to report this on the issue tracker so we can track it down.
doesnt’ crash for me, I am afraid. Attached is the patch I used for ParaView’s default main window to emulate your code. My test was with ParaView latest release branch.