Hi again,
Can you elaborate on "it bombs"? If the target thread is waiting for keyboard input via
In general, if the target thread isn't a message-pumping thread (e.g., a GUI thread), then invoking through the dispatcher isn't likely to work, and you'll have to come up with your own way to ensure that the script engine is accessed only on that thread.
Cheers!
Can you elaborate on "it bombs"? If the target thread is waiting for keyboard input via
System.Console.ReadLine()
or something like that, then invoking through the dispatcher should block. If you're seeing an exception, what is it?In general, if the target thread isn't a message-pumping thread (e.g., a GUI thread), then invoking through the dispatcher isn't likely to work, and you'll have to come up with your own way to ensure that the script engine is accessed only on that thread.
Cheers!