I've got it working now, but I'm going about it in a round-about way. My application has (had) a splash-screen/launcher vi that dynamically loads and launches the actual top-level user-interface vi. The top-level vi was included in the build definition as a dynamic file. This is the ONLY dynamic call in the entire application. All other vi are called the normal way on the wiring diagram. I could never get the xcontrol to work this way. I even tried including ALL of the relevant files as dynamic/support file and could never get it to work. In one experiment, I placed an xcontrol on the top-level vi (the top-level vi doesn't have any of the xcontrols, only a couple dialog-box sub-vis that it calls). Again, everything worked fine from the development environment. But, when compiled, the top-level vi would fail to start completely. I never bothered to check what the execution state of the top-level vi was before I called it, but I assume it was "bad" so the dynamic call would fail.
I got it working by eliminating the dynamic call and calling the top-level vi as a normal sub-vi from the wiring diagram. BUT, it still had problems and would always ask me to find a couple files from the 'XControlSupport.lvlib', specifically 'Action.ctl' and 'Container State.ctl'. The xcontrol also uses the standard 'eventkey.ctl' from the 'event_ctls.llb' and it would ask me to find this file every time as well. I tried including the libraries in the project and including these libraries in the build as dynamic/support files, but still no good. To fix the problem, I copied these files into my project folder, specifically included them in my project, and then replaced all of the controls wherever they appeared with the corresponding controls included within the project.
Message Edited by GTM on 07-14-2006 08:48 AM