Hallo, IOhannes m zmoelnig hat gesagt: // IOhannes m zmoelnig wrote:
this used to be "just normal". image what happens: you press a key; [gemkeyname] binds itself to the window and reads all events that occured since the last time; a message is sent to the outlet; the gemkeyname-function is pushed to the stack; the message triggers window destruction; window is destroyed and invalid; the gemkeyname-function is popped from the stack and continues to run with a now invalid window -> references to this window crash pd.
when you click on the [destroy( message manually, then the function stack is clean.
2 ways to fix it: decouple the gemkeyname-message from the [destroy( message by a simple [del 0]
Thanks for the explanation, I'll use a [del] then, which works fine.
Ciao