That is a bunch of good advice. Thanks for that. How can I use some method every minute though and not hold up the rest of app by waiting for the timer to indicate that full minute has passed?
That is a bunch of good advice. Thanks for that. How can I use some method every minute though and not hold up the rest of app by waiting for the timer to indicate that full minute has passed?
jahsiotr (14th January 2013)
There is an additional problem in the original code: the future watcher object is created on the stack, so it is being deleted whenever that function's context ends.
If I read this correctly this is code inside the main window's constructor, so the future watcher will be gone by the time the window shows up.
Cheers,
_
Bookmarks