I'm trying to set
some properties to the control inside thread that was forked from the same thread where window is created and I'm getting segfaults when I'm doing it.
In my case I need to create an infinite reader from some MVar
and do some set
depending on value I got from MVar
, and I can't just end with an infinite monad inside start
because window won't appear until this monad is finished. I'm not sure how should I solve it.
Is this a bug that set
isn't thread-safe? Or it's supposed to be done different way?
Look at the part of my code that causes segfaults:
https://github.com/metachronica/audio-midihaskey/blob/c46724161a646d02d801fea439e98e3e99b71489/src/GUI.hs#L92-L98
I'm sorry, I just realized I supposed to choose right ticket category, it it possible to move it to 'support requests'?
Ticket moved from /p/wxhaskell/bugs/118/