- The DispatcherTimer runs on the UI thread and the ThreadPoolTimer runs on the ThreadPool. If you don't need to update the UI then you should use the second one.
- Asynchronous != multi-thread
Asynchrony means running a job without blocking the Thread where it is working at. Concurrency is actually a special kind of asynchrony where it is achieved by creating a new Thread.
- Timers
ThreadPoolTimer - submit a job to the thread pool
http://msdn.microsoft.com/en-us/library/windows/apps/jj248676.aspx
DispatcherTimer - run in the UI thread; firing time is not very accurate
http://stackoverflow.com/questions/10493253/controlled-non-ui-timer-in-metro-app-net
System.Timers.Timer (should be used in server) v.s.System.Threading.Timer
http://stackoverflow.com/questions/1416803/system-timers-timer-vs-system-threading-timer
- Update UI in a different thread
http://stackoverflow.com/questions/9540260/update-ui-from-thread-in-winrt
- Deploy Windows App on Surface
http://www.lhotka.net/weblog/TestingAWinRTAppOnASurfaceRT.aspx
Wednesday, July 24, 2013
Monday, July 15, 2013
ASP .NET with Emgu CV on Windows Azure VM
- Disable "IE Enhanced Security Configuration" in Server Manager>Loval Server
- Install IIS Express 8
- Modify the configuration to allow connection to a new site
- Configure the endpoint on the Azure dashboard
- Allow inbound connection in the firewall setting
- Install EmguCV (cause it comes with ), put /x86/bin into the path environment variable
- Turn off the computer and start it
- Download codes/img from dropbox.
Subscribe to:
Posts (Atom)