08-29-2006 03:03 AM
08-29-2006 09:40 AM
The first thing to try for a problem like this is to put the step that displays the dialog in a subsequence. In the call to the subsequence, configure the sequence to run in a new thread and select the Edit Sequence Call>>Settings...>>Use Single-Threaded Apartment option. You can insert a Wait step after the sequence call to keep the parent sequence from proceeding until the subsequence completes.
If this fixes it, it is because the dialog uses an ActiveX control that requires a Single-Threaded Apartment thread.
08-30-2006 07:29 AM
08-30-2006 01:39 PM
jambon -
All execution thread are initialized to be MTA (multi-threaded apartment) and the sequence call that you did is the only way to get an STA threading. The only other option would be to write a code module that launches a separate thread that initializes to STA and waits for the thread to complete. This is typically not as easy as just doing a sequence call.
08-31-2006 02:41 AM