there is a long ongoing problem in Xojo, that we see StackOverflowExceptions when a callback is coming on some thread not known to Xojo.
Three years ago I filled a feedback case: 53201 - StackOverflowChecking should work for non Xojo threads by doing nothing
An alternative may be to let the plugin know the thread is a Xojo thread.
I also requested 47037 - is xojo thread function for plugin SDK to have a function telling me whether it’s a Xojo thread.
I wonder if something like this could be done?
Or is there a trick to access what Xojo currenthread function would do in a plugin?