bighugemassive3
bighugemassive3
CC#
Created by Adise on 4/6/2025 in #help
✅ Class instance reference
Put a breakpoint on the UdpConnection constructor and see if another instance is created
55 replies
CC#
Created by Adise on 4/6/2025 in #help
✅ Class instance reference
That's what i meant by test
55 replies
CC#
Created by Adise on 4/6/2025 in #help
✅ Class instance reference
But how do you know there's even an issue if you didn't test it??
55 replies
CC#
Created by Adise on 4/6/2025 in #help
✅ Class instance reference
I would double check your test code, you might be doing something wrong in there instead
55 replies
CC#
Created by Adise on 4/6/2025 in #help
✅ Class instance reference
UdpConnection is a class right not struct?
55 replies
CC#
Created by Adise on 4/6/2025 in #help
✅ Class instance reference
What do you mean by can't access instance members? In the handler callback?
55 replies
CC#
Created by IAmMaddieAtYou on 4/1/2025 in #help
WPF Video Editor program | Help with the (Timeline/TimeMarks)
I made a video editor called FramePFX so maybe that will help you. See TimelineControl.cs
17 replies
CC#
Created by bighugemassive3 on 12/28/2024 in #help
return Object<byte> after checking typeof(T) == typeof(byte)
Though not sure if it works at runtime, i have way too many errors at the moment
13 replies
CC#
Created by bighugemassive3 on 12/28/2024 in #help
return Object<byte> after checking typeof(T) == typeof(byte)
where TValue : IParsable<TValue> seems to work though
13 replies
CC#
Created by bighugemassive3 on 12/28/2024 in #help
return Object<byte> after checking typeof(T) == typeof(byte)
Just parsable really
13 replies
CC#
Created by bighugemassive3 on 12/28/2024 in #help
return Object<byte> after checking typeof(T) == typeof(byte)
I'm wondering if constrainting TValue to INumberBase<TValue> would work
13 replies
CC#
Created by bighugemassive3 on 12/28/2024 in #help
return Object<byte> after checking typeof(T) == typeof(byte)
It's for a serialisable property
13 replies
CC#
Created by bighugemassive3 on 12/28/2024 in #help
return Object<byte> after checking typeof(T) == typeof(byte)
That what I think i'll do, just use object instead of TValue
13 replies
CC#
Created by bighugemassive3 on 12/28/2024 in #help
return Object<byte> after checking typeof(T) == typeof(byte)
The constructor takes Func<string, TValue> fromString
13 replies
CC#
Created by bighugemassive3 on 12/28/2024 in #help
return Object<byte> after checking typeof(T) == typeof(byte)
Yeah
13 replies
CC#
Created by bighugemassive3 on 12/12/2024 in #help
Race condition with Interlocked.Exchange
Appreciate the help fred 👍
39 replies
CC#
Created by bighugemassive3 on 12/12/2024 in #help
Race condition with Interlocked.Exchange
Clear the critical state in case InvokeAsync is called within microseconds
39 replies
CC#
Created by bighugemassive3 on 12/12/2024 in #help
Race condition with Interlocked.Exchange
I'm thinking this might do the trick
ObjectWrapper? value;
lock (this.stateLock)
{
value = Interlocked.Exchange(ref this.currentValue, null);
this.ClearCriticalState();
}
ObjectWrapper? value;
lock (this.stateLock)
{
value = Interlocked.Exchange(ref this.currentValue, null);
this.ClearCriticalState();
}
39 replies
CC#
Created by bighugemassive3 on 12/12/2024 in #help
Race condition with Interlocked.Exchange
I guess InvokeAsync updated the value after the first ExecuteCore, and then that cleared the value. But because InvokeAsync was called during the first ExecuteCore, the critical state got set so ExecuteCore was called again
39 replies
CC#
Created by bighugemassive3 on 12/12/2024 in #help
Race condition with Interlocked.Exchange
Looks like InvokeAsync was called in the same 10~ microsecond window as ExecuteCore
39 replies