How to spawn a thread within a GtkD button event handler
Ferhat Kurtulmuş
aferust at gmail.com
Thu Oct 8 19:57:23 UTC 2020
On Thursday, 8 October 2020 at 19:53:26 UTC, Alaindevos wrote:
> I created blindly a thread and this allowed to do stuff in
> background.
> But when i passed the mainwindow as argument and did some stuff
> it resulted in,
> [xcb] Unknown sequence number while processing queue
> [xcb] Most likely this is a multi-threaded client and
> XInitThreads has not been called
> [xcb] Aborting, sorry about that.
> Assertion failed: (!xcb_xlib_threads_sequence_lost), function
> poll_for_event, file xcb_io.c, line 263.
> Program exited with code -6
I put a minimal example here:
https://gist.github.com/aferust/2b469fad974bf8d80ede4db0d0627645
More information about the Digitalmars-d-learn
mailing list