<p></p>
<p>Sorry for the late reply. I'm not yet very familiar with building the VM and did not debug it before at all <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji></p>
<p>As far as I can tell, everything looks fine when <code>LoadLibrary()</code> is called (I debugged <code>build.win64x64/squeak.cog.spur/builddbg</code>):</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/38782922/111986111-d045c080-8b0d-11eb-83ab-6f7303b88a34.png"><img src="https://user-images.githubusercontent.com/38782922/111986111-d045c080-8b0d-11eb-83ab-6f7303b88a34.png" alt="image" style="max-width:100%;"></a></p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/38782922/111989144-aabab600-8b11-11eb-91a4-684807b78944.png"><img src="https://user-images.githubusercontent.com/38782922/111989144-aabab600-8b11-11eb-91a4-684807b78944.png" alt="image" style="max-width:100%;"></a></p>
<p>Still, these calls raise an access violation. The other attempts with <code>32</code>/<code>.dll</code> postfixes and image path prefix fail, too. As far as I understand it, the screenshotted call should succeed because the <code>Win32OSProcessPlugin.dll</code> is in the same directory as <code>Squeak.exe</code>.</p>
<p>Does it matter that according to the Process Explorer, the current working directory of Squeak.exe points to the location of the image file rather than to the location of the VM? According to the <a href="https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#standard-search-order-for-desktop-applications" rel="nofollow">docs</a>, this should not matter?</p>
<p>By the way, the SSL plugin can be successfully loaded when running the same image in WSL (Ubuntu). So it's indeed a VM problem.</p>
<hr>
<p>BTW: When trying to run a 64-bit image in a 32-bit VM (which does not work, of course), an exception is generated from the following stack:</p>
<pre><code>Squeak.exe!abortMessage(char * fmt) Line 63
Squeak.exe!printUsage(int level) Line 3116
Squeak.exe!sqMain(int argc, char * * argv) Line 1636
Squeak.exe!WinMain(HINSTANCE__ * hInst, HINSTANCE__ * hPrevInstance, char * lpCmdLine, int nCmdShow) Line 1779
Squeak.exe!main(int flags, char * * cmdline, char * * inst) Line 20
Squeak.exe!__tmainCRTStartup() Line 341
</code></pre>
<p>Shouldn't a meaningful error window be shown here instead? Do you have any idea why this is broken? I also noticed that the <code>args</code> variable seems to be corrupted. Or is it just pending to be initialized properly?</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/38782922/111917579-ff622080-8a80-11eb-9a79-fb17086f8c08.png"><img src="https://user-images.githubusercontent.com/38782922/111917579-ff622080-8a80-11eb-9a79-fb17086f8c08.png" alt="image" style="max-width:100%;"></a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-804022442">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW3CYXVMIJLJ7YDODHLTE4ZI5ANCNFSM4ZCQMSXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEW6NGP76H3Q7J74DE23TE4ZI5A5CNFSM4ZCQMSXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF7WGRKQ.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/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-804022442",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-804022442",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>