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...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.
It is currently March 28th, 2024, 9:49 pm
[help] C# and multithreading
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: [help] C# and multithreading
-
- Posts: 232
- Joined: July 1st, 2011, 1:32 am
- Location: US
Re: [help] C# and multithreading
Darn right it is.jsmorley wrote:Anyway, arguing about naming conventions is the road to hell.
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
-
- Posts: 64
- Joined: December 24th, 2012, 6:56 pm
Re: [help] C# and multithreading
Okay. Then our party continuesjsmorley 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...
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.
-
- Posts: 232
- Joined: July 1st, 2011, 1:32 am
- Location: US
Re: [help] C# and multithreading
Besides, abstraction is for the weak. Async methods. Psh.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...
Flying Hyrax on DeviantArt
-
- Posts: 64
- Joined: December 24th, 2012, 6:56 pm
Re: [help] C# and multithreading
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?
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.
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?
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.
-
- Posts: 232
- Joined: July 1st, 2011, 1:32 am
- Location: US
Re: [help] C# and multithreading
If you guys intend to keep going, looks like it might be for just the science:
https://github.com/rainmeter/rainmeter/commit/ae1cbe0b856104e33946e542cd61e3058385fb42
https://github.com/rainmeter/rainmeter/commit/ae1cbe0b856104e33946e542cd61e3058385fb42
Flying Hyrax on DeviantArt
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: [help] C# and multithreading
Yep...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
No cheating...
-
- Posts: 232
- Joined: July 1st, 2011, 1:32 am
- Location: US
Re: [help] C# and multithreading
Rock on.jsmorley wrote: Yep...
No cheating...
Onward, for the documentation!
Flying Hyrax on DeviantArt
-
- Posts: 64
- Joined: December 24th, 2012, 6:56 pm
Re: [help] C# and multithreading
ONLY C#!!!