Howdy --
I have fairly complex piece of code that, when run as a result of a button
callback on a gizmo will cause a segfault in Nuke. If I wrap that code in a
call to executeInMainThread, it runs fine. Also, I can run the code in the
script editor without a segfault. I've narrowed down the segfault to a part in
the code where I call:
nuke.scriptClear()
nuke.scriptOpen(new_script_path)
So, my question is this: are there a set of rules or guidelines to follow that
tell us when we should wrap our code in an executeInMainThread? I don't want to
just start blindly wrapping stuff that fails in executeInMainThread without
knowing why I'm doing it. I've done a bit of googling, and see that it was
mandatory to run PyQt apps in a separate thread and use executeInMainThread,
but no guidelines that are more general than that.
Cheers
--alex_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python