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

[text] foone Foone 15 5td. B P R R e Docker for Windows wont run if you have the Razer Synapse driver e R AT But the reason is the funny part… ST LY AVARIRVE T w S0 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 5 0 36 V0 fu T v except they do it wrong. And they both do it wrong in the same way. The code involved is something like this E T RO G Assembly GetExecutingAssembly0.GetType.GUID Sall VA i foone Foone 15 Std. The idea is to get the GUID of the assembly thats executing and to create a GUID based on that so now you can only run one copy of it. Q2 ey Q 650 IR 2 LREEE The GetType part isnt 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 tself. ok n 2 VI foone Foone 15 Std. E 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 theyre both using the GUID of part of NET itself. And theyre using the same one Q4 e Q 1168 foone Foone 15 Std. So howd that happen Well it turns out we can tell EXACTLY how that happened. Because the answer is… STACK OVERFLOW SRT VT P v Back in 2009 the user Nathan asked how to get the GUID of the running i Q Twitter durchsuchen T 2 Ayear and a month later it was pointed out by Yoopergeek that it gives LTRTTY Three years later Cerebrus returns and fixes the answer. They cant delete it because it was accepted Q7 0 30 v Fi7 YR A2 But because they made an eror in replying to someone in 2009… this flawed code caused bugs that stillexist as recently as March of 2018. Docker for Windows wont start if Razer Synapse 3 is . Just a quick tip if youre struggling to get docker for Windows working on Windows 10. If you have Razer I S iR 7 Q 1820 That flawed stackoverflow post is here R T L L I need to access the assembly of my project in C NET20. can B S AR e e stackoverflow.com 648 vorm. 18. Feb. 2020 Twitter Web App ELLEE ST IR ey