I have a bug fix for the failure to remember the selection area now.
The failure to update is down to threading. When run from the menu button, the script runs in SharpCap's main thread, and if you do extended processing then it will freeze the SharpCap UI.
The best workaround is to run the form in its own thread. This code shows a sample of how to do that
Code: Select all
# IronPython Pad. Write code snippets here and F5 to run. If code is selected, only selection is run.
from System.Threading import Thread, ThreadStart, ApartmentState
def hello():
print "new", Thread.CurrentThread.ManagedThreadId
def hellothread():
th = Thread(ThreadStart(hello))
th.SetApartmentState(ApartmentState.STA)
print "main", Thread.CurrentThread.ManagedThreadId
th.Start()
hellothread()
cheers,
Robin