Click here to Skip to main content
15,892,059 members

Comments by Fred van Lieshout (Top 6 by date)

Fred van Lieshout 24-Feb-23 4:41am View    
Excellent explanation, thank you so much! I'm a newbie to C#, hence my experiment with this. Did not expect this at all, but definitely something to keep in mind!
Fred van Lieshout 23-Feb-23 8:05am View    
Thanks! The thing is, it does not time out. I would have seen the exception then. I suspect there's an issue with the underlying code. Despite the documentation saying that it is thread safe, it appears that it is not (at least not 100%). The Status property is set to 'RanToCompletion', but the IsCompleted is 'false'. Until I log it again, then it is true. It is also logged immediately as 'true' when I log log it from the same thread context, i.e. in the OnCompleted callback. But never mind, I was just experimenting a bit.
Fred van Lieshout 21-Feb-23 10:48am View    
Your feedback is very much appreciated. Thanks!
Fred van Lieshout 21-Feb-23 10:32am View    
Fair point!
Fred van Lieshout 21-Feb-23 10:30am View    
You could take a look at SWIG: https://www.swig.org/Doc3.0/CSharp.html