I have not been able to reproduce this issue after changing the code as mentioned in my previous post.
Can you please provide a ready to run sample project that demonstrates the issue so I can further investigate this?
Sample projects can be emailed to: help@tmssoftware.com