Fix. Use string to pass pointers between threads.