Re: [OpenSmalltalk/opensmalltalk-vm] Newspeak VMs do not open the Newspeak UI on Windows (#151)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Newspeak VMs do not open the Newspeak UI on Windows (#151)

David T Lewis
 

The UI does not open, neither on 32bits nor 64bits VM, so this is probably not related to X64 ABI.
I put a break in ioShowDisplay with gdb and the VM is going there (via primitiveShowDisplayRect).
It is painting a region of a bitmap.
But since the window is not visible (hidden?) nothing seems to happen...

I'm not a specialist of windows UI, but there must be some obvious GUI call missing...
There should be a ShowWindow(stWindow,SW_SHOW) or something like that.

There is one in ioForceDisplayUpdate() but only #if !NewspeakVM.
It is suggested that Newspeak has to explicitely emit such request...
See https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/36270b33202975eee7adab9fa0905dd48421e1ef/platforms/win32/vm/sqWin32Window.c#L2263

I have checked the history of platforms/win32 around may/june 2016, not much happened there...
https://github.com/OpenSmalltalk/opensmalltalk-vm/commits/Cog?after=36270b33202975eee7adab9fa0905dd48421e1ef+244&path%5B%5D=platforms&path%5B%5D=win32&path%5B%5D=vm


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/151#issuecomment-619449252", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/151#issuecomment-619449252", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Newspeak VMs do not open the Newspeak UI on Windows (#151)

David T Lewis
 

If I remove the guard at line 2263 and recompile the VM, I see the newspeak window appear...
So it looks like an essential call to ShowWindow is missing or failed (via FFI???).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/151#issuecomment-619449612", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/151#issuecomment-619449612", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Newspeak VMs do not open the Newspeak UI on Windows (#151)

David T Lewis
In reply to this post by David T Lewis
 

Ah Ah, but then I see a debugger with stack setupWindowProc...
Error Case not found PointerFFICallbackThunk...

So I suggest to amend line 2263 of sqWin32Window.c (#if 1) recompile, debug newspeak, then return to regular VM.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/151#issuecomment-619450031", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/151#issuecomment-619450031", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>