inexplicable errors

can you please elaborate a little more?

In your application you are printing some messages and the traces are not coming sequentially… Is this the problem at your end?

is it possible to share your application so that I can test it t my end

Thanks,
Rex