<p></p>
<blockquote>
<blockquote>
<p>So let me chime in with an alternative solution.<br>
I'm on Win10, geany 1.36 (built on or after 2019-09-28).<br>
Recently, I ran into this very same issue. For background info: I recently upgraded to WSL2, which required the "Virtual Machine Platform" optional feature. So, we're talking Hyper-V again, I guess. Just to be clear - I'm running a windows install, not a Geany inside the linux 'VM'.<br>
My solution was to change the port number of the IPC socket, which is by default 49876, to another number (I randomly picked 33492). Since I was to lazy to compile, I did this by grabbing my favourite hex editor, and changing two occurences of 0xd4 0xc2 inside libgeany-0.dll to 0xd4 0x82. Now it opens files again in the same instance! Hurrah!<br>
I believe the reason is that Hyper-V acts funny if you use ports inside the Dynamic ports range, which starts at 49152, but I didn't check that. If someone wants to publish a patch to that extend, I'm happy to experiment a bit around if another port number is wanted.<br>
Hope this is useful for someone!</p>
</blockquote>
<p>Could you give the offsets of the two 0xd4 0xc2's you changed? There are four occurrences of 0xd4 0xc2 in libgeany-0.dll.</p>
</blockquote>
<h2>Sure. At your own risk, obviously ;)<br>
my libgeany-0.dll has a md5sum of 8f657bddd306134b922ba98cb4097324.<br>
Offsets are 0x603ce and 0x603f5.<br>
my hexdump diff looks like (original top, my changes bottom).<br>
< 000603c0  43 6a ff d0 3d b7 00 00  00 74 27 c7 04 24 d4 c2<br>
< 000603f0  00 00 c7 04 24 d4 c2 00  00 e8 7c 03 00 00 89 45</h2>
<blockquote>
<p>000603c0  43 6a ff d0 3d b7 00 00  00 74 27 c7 04 24 d4 82<br>
000603f0  00 00 c7 04 24 d4 82 00  00 e8 7c 03 00 00 89 45</p>
</blockquote>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2101#issuecomment-687920505">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZYSNTRWSWLT2I5W2TSEQE5VANCNFSM4G4V7S2A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2VUFPF7NN5CLT7E4TSEQE5VA5CNFSM4G4V7S2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFEANK6I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2101#issuecomment-687920505",
"url": "https://github.com/geany/geany/issues/2101#issuecomment-687920505",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>