Julun <HOST.HAIKU@xxxxxx> wrote: > > Maybe I miss something obvious, but why would exit_thread() fail? > > And why > > would moving it to the destructor help in this case? > It fails only in combination with unload_add_on, I'm even unsure if > exit_thread fails here. I simply noticed that if an add-on creates a > window, after closing that window it will crash if the exit_thread > call > is not in the destructor. Maybe unload_add_on or exit_thread will > access > something in the already freed looper? In general, you always have to make sure that the add-on is only unloaded after it isn't used anymore. But you probably know that anyway :-) Bye, Axel.