Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: problem with backgroundworker

$
0
0
Hi again,

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!

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>