How do you reset/close the execution using the API?

I am trying to programmatically launch different sequences then look at the final results.  The results of the execution always show the results from the first call to
TS_ExecutionGetResultStatus.  Even if I execute a different sequence.  Is there a method to close the last execution results? 
Thanks,
Mike
Here is a code snippet of what I am doing.
    tsErrChk(TSUI_SequenceFileViewMgrRun (tsoHandles.sequenceFileViewMgr, &errorInfo, CA_DEFAULT_VAL, NULL));
    CA_DiscardObjHandle(tsoHandles.Executions);
    tsErrChk(TSUI_ApplicationMgrGetExecutions(tsoHandles.applicationMgr, &errorInfo, &tsoHandles.Executions));
    tsErrChk(TSUI_ExecutionsGetItem(tsoHandles.Executions, &errorInfo, 0, &tsoHandles.Execution));
    if (bWait)
    { // Wait
        while (Test_Running())
        { // Running
            ProcessSystemEvents();
            iCount++;
        } // Running
    } // Wait
    tsErrChk(TS_ExecutionGetResultStatus(tsoHandles.Execution, &errorInfo, &szResults));
    if (strcmp(szResults, "Passed") == 0)
        bRet = TRUE;
    if (strcmp(szResults, "Failed") == 0)
        bRet = FALSE;
Solved!
Go to Solution.

Hey Mike,
It looks like you're on the right track but from the code you pasted you are always referencing the same execution.  Because the TS_ExecutionGetResultStatus function just returns the status of whichever Execution object you decide to pass it, you first should verify that you passing it the correct object. When you call the TSUI_ExecutionsGetItem function:
tsErrChk(TSUI_ExecutionsGetItem(tsoHandles.Executions, &errorInfo, 0, &tsoHandles.Execution));
you are passing a value of zero for the ItemIdx input. Try changing your value from 0 to any number between 1 and one less than the result of TSUI_ExecutionsGetCount (because of zero indexing). Give this a try and see if this helps.
Lars

Similar Messages

  • For the iPad, using OS  7.02, how do you now close an application?

    For the iPad, using OS  7.02, how do you now close an application?  When I double click, go to the task bar and touch on the icon, it no longer gives me the option to close the application.  Do you no longer need to quite an application?

    Double tap the home button and swipe upwards on the preview of the App (not the App Icon)

  • How do you reset the dlsmusic device or make it visible in order for other programs such as Sibelius or Finale be able to use it?to be visib

    How do you reset the dlsmusic device or make it visible in order for other programs such as Sibelius or Finale be able to use it?

    I figured out that if you remove the ~/Library/Preferences/com.apple.symbolichotkeys.plist file and restart, that restores the keyboard.
    Second question: Is there any way to make F4 (without holding fn) bring up Dashboard on Lion that doesn't require FunctionFlip? If it matters, I have a Time Machine backup of the symbolichotkeys.plist file from when I had the older keyboard.

  • How do you reset an ipad mini without knowing the password?

    I have just recently changed my password, but know i have forgot the new one. How do you reset the ipad without knowing the password?

    If you mean the passcode to unlock the iPad then you will need to connect it to the computer that you normally sync to and you should then be able to reset the iPad and restore/re-sync your content to it (http://support.apple.com/kb/HT1212) - you may need to put the iPad into recovery mode in order to be able to reset it : http://support.apple.com/kb/ht1808
    If you do it via a different computer then :
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.

  • HT201304 how do you reset the restriction password on an ipod touch

    How do you reset a forgotten restriction password on an ipod touch

    They will be erased from the iPod along with everything else, but since those songs must have originated from a source other than the iPod, they must still exist on the computer you used to sync it.
    After you restore the iPod, you just have to sync it with that same computer again.

  • TS2220 How do you reset the network password for Airport wireless?

    How do you reset the network password for Airport wireless?

    Use AirPort Utility...select the AirPort Express and in the menu select Base Station...Restore Default Settings...

  • TS1424 hi all how do you reset your security questions. i can not remember the answers. how do you reset them? i cant buy anything because it keeps coming up

    hi all how do you reset your security questions. i can not remember the answers. how do you reset them? i cant buy anything because it keeps coming up

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • How do you reset the security question answers if you don't remember the answers to the questions?

    How do you reset the security question answers if, you don't remember the answers to those questions?

    Read this about how to change the security questions: http://support.apple.com/kb/HT5312
    If you can't use these procedures contact Apple. See http://support.apple.com/kb/HT5699

  • I get a message that says ff is already running but is not responding ,to open a new window, you must close the existing ff process or restart your system, how do i close the existing ff process?

    I have windows 7 on dell laptop. I am working on a Word Document and want to go to a diff window for some information. I click on the FF icon on my desktop and get a message that says...FF is already running but is not responding. To open a new window, you must close the existing ff process or restart your system..how do you close the existing ff process?
    == This happened ==
    Every time Firefox opened
    == I got my new dell laptop four weeks ago with window 7 installed

    See https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding

  • HT5538 How do you separate multiple iOS devices using the same apple id account for Face Time calls and iMessaging?

    How do you separate multiiple ios devices using the same apple id account for Face Time calls and iMessaging?

    The only way I have seen is to have each device use a if fervent email account, if they all are on the same email the FaceTime connection is either to a phone number or to an email address.  If they ar all on the same email, it is up to the user to decide which to use.

  • HT204053 I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    Hi Roger:
    Thanks for the reply.  I think I figured out the problem.  Apple has confused (at least in my mind) the different IDs that people can have.  In the iCloud settings, they use the term Apple ID and not iCloud ID.  I guess there really is no such thing as an iCloud ID.  There are Apple IDs with various attributes.  This is not clearly explained or easy to see (how could I look up to see if my Apple ID is associated with iTunes for example?).
    I created, what I thought were iCloud IDs for each family member, but we all use my Apple ID for iTunes.
    One other question - why does the syncing of Notes using iCloud require an @me.com email account.  That makes no sense to me.
    Thanks for your help!
    AO

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How can you turn off the braille setting on an iPhone 4s, once on it won't let you slide the phone into use mode to change the settings or do anything?

    How can you turn off the braille setting on an iPhone 4s, once on it won't let you slide the phone into use mode to change the settings or do anything?

    An alternate method is Accessibility Settings when connected to iTunes. You should be able to turn it off there. I would also check out some of the answers listed to the right of this post and see if they can help.

  • How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app?  When I leave the car and return to continue hearing a book, it has switched to iTunes.

    How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app?  When I leave the car and return to continue hearing a book, it has switched to iTunes.

    The first time an iPhone is connected to iTunes that is used to sync with another iPhone or iOS device, you are prompted to transfer the backup for the other iPhone or iOS device or to set up the iPhone as a new iPhone.
    The former does as provided - it transfers the backup for the other iPhone or iOS device to the iPhone replacing all data on the iPhone that is included with the backup being transferred. The latter does nothing allowing you to make your various selections for the iPhone sync preferences with iTunes.
    This is designed to be done right away with a new iPhone.
    If you don't have a backup for the iPhone with iTunes on your computer and don't have an iCloud backup that hasn't been updated since choosing to transfer the backup for your iPod Touch to the iPhone, the data that was on the iPhone is gone.

  • How do you turn off the Mac book pro monitor when using dual monitors?

    How do you turn off the monitor on the mac book pro and only see your second monitor?

    You close the lid and run in "clam-shell" mode
    http://support.apple.com/kb/HT3131?viewlocale=en_US

Maybe you are looking for

  • My songs in the library keep freezing when playing, how do you solve this?

    I've recently updated my iTunes software and since doing this each time I play one of my songs in my library, It keeps freezing and stuttering inbetween each song. Is there a bug on the latest software? How do i fix this. Thank you.

  • Catalog corrupted, won't repair, please help

    My situation is very similar to the on in this post http://forums.adobe.com/thread/472039 Catalog is corrupted and won't repair, I've tried to create a new catalog than import from the corrupted one but nothing. I'm very depressed and frustrated abou

  • Cannot save opened tabs before closing the browser

    Cannot save opened tabs before closing the browser. I do not know if there is such a feature (should be), and how to activate it. It was very useful with previous version.

  • IDoc's for FICO

    Hi folks. I need some basic info about usage of IDOCs in FICO. I have no idea about the usage of IDOCs and EDI. Can anyone please send me the documents or explain me in detail. I really appreciate your help. Thanks Vijay.

  • Music controls semi-unresponsive

    hey all, i have seen at least one thread on here about the dock icons being unresponsive but i found a new 'bug' yesterday. When the ipod is in landscape mode (say when you are on the internet) and i double tap the home button to pull up the music co