Skip to main content
1 of 2
Aske B.
  • 6.6k
  • 12
  • 7

Yes and no. From what I gather from Servy, it doesn't matter whether you want others to make a solution for you, while you sit back and do nothing, or just want to understand why the code behaves unexpectedly. What matters is how you describe the problem. In my case, I gather that the main issue is that I don't have a code snippet that can reproduce the problem.

As Alexei Levenkov pointed out, this can be hard - and in this case, we strongly suspect it's some kind of bug with .NET or a quirk with atomic operations and threads. Either way, the primary road to an answer of that question would be if someone else had encountered the exact same bug, and was able to spot it just from the provided code. Unlikely, but we thought it was worth the shot.

I've now realized that it might be more optimal for SO, if we had been able to reproduce the behavior with an independent code snippet, and provided the specific .NET versions, OS versions and whatever else caused the issue. That way, a lot more people would have a chance at figuring it out, and understanding the nature of the problem.

Instead, I got a lot of comments asking me trivial things that wasn't related to the bug. And I think that wastes everyone's time. I will keep this in mind for the future. Next time I will not ask a question unless we have an independent code snippet that can be reproduced simple by copy-paste into a new project, on a machine with the exact info we provide.

In spite of all the downvotes, I've gotten some decent feedback, so I think I'll leave this open, so I can find again some other time.

Aske B.
  • 6.6k
  • 12
  • 7