Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
There is not problem in the code I typed.
Problem I had was that I wasn't doing correctly "InQEnd = US_InBuffer;".
Sorry for the lost time.
Best regards !!