thread is done using the pointers to variable in the ctrl_thread (e.g. user). This should fix the exception on line 1790.