09-01-2015 07:30 AM - edited 09-01-2015 07:31 AM
This part of code should be enough to grasp what I was writing about. Commenting CmtWaitForThreadPoolFunctionCompletion will eventually make callbacks fail.
 
					
				
		
 RobertoBozzolo
		
			RobertoBozzolo
		
		
		
		
		
		
		
		
	
			09-03-2015 02:30 AM
I am looking at your code, it's rather complex to understand due to the extended use of references to structured variables you are making, but at some point I realized that your main function is NOT calling RunUserInterface () at any time 
That is: the initial assumption we made that the main thread is processing events is NOT TRUE at all! This explains why TSQ is not reading data and adding CmtWaitForThreadPoolFunctionCompletion with event processing option was "solving" your problems.
 
					
				
		
 RobertoBozzolo
		
			RobertoBozzolo
		
		
		
		
		
		
		
		
	
			09-10-2015 12:03 AM
Hello Chris, is there any update on this subject?