2 ms·
I think the guy copied the video processing loop into the event handler. So the event handler goes into a while(1) loop instead of starting a new thread/proces
by wmil 16y ago
I think the guy copied the video processing loop into the event handler.
So the event handler goes into a while(1) loop instead of starting a new thread/process to do the video processing.
That will lock the GUI and make the app unusable.
- kenjackson 16y agoOK, so from looking at the code, only DrawNow needs to be on the UI thread (unless DrawNow is actually not drawing to the screen). That makes sense. One thing to note though, the grad student may not be familiar with a model where UI is on a specific thread. I know some of the past systems I used had the rental model (even WPF had it early on), so maybe, giving him the benefit of the doubt... this is what he was thinking about (and assumed you had acquired all the correct locks in your code)?