Sorry :(, I forgot an essential point. All the function (from App to the Dll ) was at other Thread ("Dll thread"). Not in the main (GUI) thread, but in the same one (using queue) The init(…) and other function first enter to Q and the pulled by the "Dll Thread") koby