Hi
I just tried building your executable on my machine and didn't have a problem so it looks like the problem is specific to your system.
This error has been known to happen when building a VI which contains a subVI containing a shared variable. Have you upgraded to the 8.0.1 patch? This behaviour has been logged and is being looked into by R&D.
Some potential workarounds are as follows:
1. Check the "Enable debugging" option in the "Advanced Category" of the application executable properties
2. Disable the "Remove Panel" option for all SubVIs containing Shared Variables in the build
3. Try unchecking the "Disconnect type definitions and remove unused polymorphic VI instances" options also in the Advanced category of the executable properties (see jpeg attached for print screen)
4. Move shared variables to the top level VIs and pass the data through the SubVI connector
If you aren't using the 8.0.1 patch, there are a number of other scenarios that can result in this error. Use the following Knowledge Base to troubleshoot this error and let me know how you get on:
http://digital.ni.com/public.nsf/websearch/705C2ECA081F3C7986256C0F00559B02?OpenDocument
Kind regards
Sarah
Applications Engineer | National Instruments | UK & Ireland