Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added .S inside WM_CREATE crashes spf4wc #5

Open
bamboospirit opened this issue Jan 29, 2019 · 1 comment
Open

Added .S inside WM_CREATE crashes spf4wc #5

bamboospirit opened this issue Jan 29, 2019 · 1 comment

Comments

@bamboospirit
Copy link

bamboospirit commented Jan 29, 2019

Steps to reproduce:
edit spf4wc.f

WM_CREATE :M { lpar wpar hwnd \ hdc -- 0 }
.S  \ insert this line

now executing the word CONSOLE or compiling spf4wc.exe and running it will make it crash...

0 TO H-STDOUT \ получает стандартные хэндлы
If I comment this line then I can see in the terminal that .S enters an infinite loop

Q1: I would like to know the reason why this is happening and how to avoid it. Sometimes I need to debug WM_CREATE ... messages so I need to print the stack to the terminal

Q2: is there any IRC channel dedicated to sp-forth ?

@ruv
Copy link
Contributor

ruv commented Jan 30, 2019

Did you compile from the sources and use the latest build of spf4.exe?
I can reproduce neither crash nor infinite loop (it just prints 1365 numbers in the console).
NB: spf4wc.exe should be located near spf4.exe (otherwise it hangs).

Regarding debugging WM_CREATE message.. In general, it is too low level approach to create GUI. Except if you are writing a GUI library. See also a discussion at StackOverflow.

Regarding IRC — no, but there is a chat in Telegram with low traffic — https://t.me/spforthchat
You are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants