> > Note: the call to g_thread_init() solves problems with g_slice_alloc() - > > without > that call we get arbitrary crashes. > > This should be a comment in the code. GLib needs to be running in > multithreaded mode in order for the GSlice allocator to be thread-safe. > This is why you see crashes without g_thread_init().
Ok, will do - thanks for the explanation.