in , , , ,

Using answers from SO is not always the best to do

Using answers from SO is not always the best to do | code-memes, web-memes, geek-memes, stackoverflow-memes, stack-memes, stack overflow-memes, program-memes, assembly-memes, bugs-memes, bug-memes, global-memes, .net-memes, windows-memes, docker-memes, oop-memes, fix-memes, overflow-memes, IT-memes, c#-memes, idea-memes, ide-memes, bot-memes, twitter-memes, runtime-memes | ProgrammerHumor.io
code-memes, web-memes, geek-memes, stackoverflow-memes, stack-memes, stack overflow-memes, program-memes, assembly-memes, bugs-memes, bug-memes, global-memes, .net-memes, windows-memes, docker-memes, oop-memes, fix-memes, overflow-memes, IT-memes, c#-memes, idea-memes, ide-memes, bot-memes, twitter-memes, runtime-memes | ProgrammerHumor.io

Content

foone Foone – 15 Std. So I learned of an amusing bug today. Docker for Windows won’t run if you have the Razer Synapse driver management tool running. But the reason is the funny part… 142 17 5.638 ( 11.143 foone Foone 15 Std. So, both programs want to ensure you only run one copy of themselves. So they create a global mutex using the GUID of their NET assembly, right? t7 36 834 foone Foone 15 Std. except! they do it wrong. And they both do it wrong in the same way. The code involved is something like this: string.Format(Global(01, (object) Assembly.GetExecuting Assembly.GetType0.GUID); 11 17 44 ( 888 foone Foone 15 Std. The idea is to get the GUID of the assembly that’s executing and to create a GUID based on that, so now you can only run one copy of it. 0 2 17 20 ( 650 foone Foone 15 Std. But it’s wrong. The .GetType0 part isn’t supposed to be there. That gets the type of the assembly, not the assembly itself. And that type is System.Reflection.RuntimeAssembly, part of .NET itself. 0 2 17 29 ( 1.005 1 foone Foone 15 Std. So what happens is that both of them are creating a global mutex to ensure only one copy runs, but instead of basing the GUID on their own code, they’re both using the GUID of a part of NET itself. And they’re using the same one! 4 17 45 ( 1.168 foone Foone 15 Std. So how’d that happen? Well, it turns out we can tell EXACTLY how that happened. Because the answer is… STACK OVERFLOW 16 17 301 3.003 foone Foone 15 Std. Back in 2009, the user "Nathan" asked how to get the GUID of the running accommin Twitter durchsuchen foone Foone 15 Std. A year and a month later, it was pointed out (by "Yoopergeek") that it gives the wrong GUID. Three years later, Cerebrus returns and fixes the answer. They can’t delete it, because it was accepted 0 7 17 30 C 1.252 foone Foone . 15 Std. V But because they made an error in replying to someone in 2009… this flawed code caused bugs that still exist as recently as March of 2018. Docker for Windows won’t start if Razer Synapse 3 is … Just a quick tip if you’re struggling to get docker for Windows working on Windows 10. If you have Razer .. reddit.com 9 17 112 1.829 foone Foone That flawed stackoverflow post is here: How do I programmatically get the GUID of an application in … I need to access the assembly of my project in C NET2.0. I can see the GUID in the ‘Assembly Information’ dialog in under stackoverflow.com 6:48 vorm. 18. Feb. 2020 Twitter Web App 39 Retweets 1.281 Gefllt mir"-Angaben