It is currently March 28th, 2024, 9:49 pm

[help] C# and multithreading

Share and get help with Plugins and Addons
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [help] C# and multithreading

Post by jsmorley »

Aragas wrote:You know, all our problem caused because Rainmeter is using .net 2.0
Can we upgrade this at least to 3.5? There are async methods that we could use and say goodbye to threads.
We really can't. XP comes with .NET 2.0 and the complexities of forcing an upgrade, with all the permission issues and the size of the client download are just not something we want to tackle. When we stop supporting XP in Rainmeter (which we certainly will someday) then yes indeed...
FlyingHyrax
Posts: 232
Joined: July 1st, 2011, 1:32 am
Location: US

Re: [help] C# and multithreading

Post by FlyingHyrax »

jsmorley wrote:Anyway, arguing about naming conventions is the road to hell. ;-)
Darn right it is.
If you're looking for some topical light-reading while taking a break, this was rather good. (I don't know how much background you have with concurrency; I have zilch so it was all new to me.) He explains things pretty nicely, I think.
Flying Hyrax on DeviantArt
User avatar
Aragas
Posts: 64
Joined: December 24th, 2012, 6:56 pm

Re: [help] C# and multithreading

Post by Aragas »

jsmorley wrote: We really can't. XP comes with .NET 2.0 and the complexities of forcing an upgrade, with all the permission issues and the size of the client download are just not something we want to tackle. When we stop supporting XP in Rainmeter (which will certainly will someday) then yes indeed...
Okay. Then our party continues :D
Our mainly problem is to simplify the code. We have at least 3 different version that works, what is very good.
Last edited by Aragas on December 21st, 2013, 6:39 pm, edited 1 time in total.
FlyingHyrax
Posts: 232
Joined: July 1st, 2011, 1:32 am
Location: US

Re: [help] C# and multithreading

Post by FlyingHyrax »

jsmorley wrote: We really can't. XP comes with .NET 2.0 and the complexities of forcing an upgrade, with all the permission issues and the size of the client download are just not something we want to tackle. When we stop supporting XP in Rainmeter (which will certainly will someday) then yes indeed...
Besides, abstraction is for the weak. Async methods. Psh. ;-)
Flying Hyrax on DeviantArt
User avatar
Aragas
Posts: 64
Joined: December 24th, 2012, 6:56 pm

Re: [help] C# and multithreading

Post by Aragas »

I saw PlyginSystemInfo and got some ideas. Bye static objects!
I checked if Threads are closing. yes. I use a little bit different Thread maker. I just make every time new unnamed Thread.
How about that? 8-)

And yes. In CaseOne we see if we have neteork connection. In CaseTwo 1234, in CaseThree http://www.msftncsi.com.
Still in progress, needs some fixes.
UpdateCounter don't work in GetString(). Need to rewrite it. Nope. Fixed.
FlyingHyrax
Posts: 232
Joined: July 1st, 2011, 1:32 am
Location: US

Re: [help] C# and multithreading

Post by FlyingHyrax »

If you guys intend to keep going, looks like it might be for just the science:
https://github.com/rainmeter/rainmeter/commit/ae1cbe0b856104e33946e542cd61e3058385fb42
Flying Hyrax on DeviantArt
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [help] C# and multithreading

Post by jsmorley »

FlyingHyrax wrote:If you guys intend to keep going, looks like it might be for just the science:
https://github.com/rainmeter/rainmeter/commit/ae1cbe0b856104e33946e542cd61e3058385fb42
Yep... ;-)

No cheating...
FlyingHyrax
Posts: 232
Joined: July 1st, 2011, 1:32 am
Location: US

Re: [help] C# and multithreading

Post by FlyingHyrax »

jsmorley wrote: Yep... ;-)
No cheating...
Rock on. :thumbup:
Onward, for the documentation!
Flying Hyrax on DeviantArt
User avatar
Aragas
Posts: 64
Joined: December 24th, 2012, 6:56 pm

Re: [help] C# and multithreading

Post by Aragas »

ONLY C#!!!