SeanP wrote:When I run the program in Studio via the run icon the program executes with out fail.
By "Run" icon you do not mean the Recorder "Play" button inside Ranorex Studio, but the "Run compiled exe" button in the main toolbar (see below screenshot), right?

- Ranorex Studio Main Toolbar
- RanorexStudio_Toolbar.PNG (13.05 KiB) Viewed 276 times
If so, this is really a strange error. Because all the button does is compiling the executable and running it with the debugger attached. This should not differ from running the compiled executable except that the execution is a little bit slower when the debugger is attached. It might be a timing issue, so you can try to add a delay before the action that fails.
Could you also try to start the executable from within Ranorex Studio without attached debugger by clicking on the black play button right next to the green one?
Regards,
Alex
Ranorex Team