Mike,
I found a Knowledge Base about that error you can refer to. It should be independent of programming language. The link is:
http://digital.ni.com/public.nsf/websearch/2D8ABBBB8D45FF74862565F6005C8D7B?OpenDocument
and the KB number is 18TAPEY5 in case you prefer to search for it on our home page.
Hope this helps.
Ron