Hi I've just come back from vacation, so sorry for no reply in a while. I will look at your code as soon as I can, but I would actually suggest that you send your question and example in to our e-mail support group (http://www.ni.com/ask).
You have already done a lot of work to isolate the problem, so they will be able to dedicate time to it once you send it in through e-mail.
Regards,
John N