ren1986 / transmission-remote-dotnet

Automatically exported from code.google.com/p/transmission-remote-dotnet
GNU General Public License v3.0
0 stars 0 forks source link

Cross thread ui access issues #379

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What version of the products are you using?
OS:winxp sp3
Transmission: 1.92 (10363 build for dd-wrt)
Remote: 3.24

Hi, I've been running transmission-remote in debug mode and have seen some 
thread exceptions occuring when power events are triggered.
The resume/suspend PowerModeChanged events are not running on the main UI 
thread and are accessing UI controls (setting Program.Connected causes accesses 
to form.torrentListView).
I've attached a patch here that seems to address the issues for me.
I hope it's of some use to you.

There are probably other instances where ICommand.Execute could be invoked 
through a delegate if necessary, however i'm not familiar enough with the ways 
other threads might invoke a .Execute() 
Best regards,
Ray

Original issue reported on code.google.com by rayfitzh...@gmail.com on 9 Mar 2011 at 2:28

Attachments:

GoogleCodeExporter commented 8 years ago
Applied by r740 and r741.

Original comment by elso.and...@gmail.com on 11 Mar 2011 at 11:54