What happen when an error occur when there are 2 threads running ?

Here is my execution :
My MainSequence calls another sequence in a new thread. This sequence call a VI continuously
When an error occur in the MainSequence, nothing happen : The step with the error in Mainsequence is still in execution state (with the arrow in front of it)  and the VI in my 2nd thread is still running. All I can't do is terminate all thread
Is this behaviour normal ? What is the mean to solve this problem (maybe calling the 2nd sequence in a new execution ?)
Thanks for your answer
Laurent

Each thread has its own error state. To get the results for a thread (including error result), you need to have a wait step which waits for it. If a thread has an error and you wait for it, you will get the error at the wait step that waits for it.
If your main thread has an error and you want some worker thread to exit, you should add code to the cleanup of your main thread's sequence which signals the worker thread to exit (you should already have some sort of mechanism for signaling the worker thread to exit (there are many ways to do this, for example, a boolean variable passed by reference to the new thread's sequence, or a TestStand notification).
If your main thread is getting an error, but is stuck inside a step, that problem is probably specific to something your code is doing, that is not the normal behavior of TestStand. You will need to provide more details or an example sequence in order for us to better understand what is happening.
Hope this helps,
-Doug

Similar Messages

  • What happen when an error occurs during Snapshot-Refresh?

    Hi,
    I would like to know what happens, when an error occurs
    during a refresh (COMPLETE-REFRESH) of a snapshot?
    Is there a possibility for exception-handling??
    During a complete refresh the data in the snapshot will be deleted an the requested new from the master-side. Now when
    an error occurs during the refresh what happens with the "old" data of the snapshot??? Will it be lost?
    Thanxx
    Schoeib

    Each thread has its own error state. To get the results for a thread (including error result), you need to have a wait step which waits for it. If a thread has an error and you wait for it, you will get the error at the wait step that waits for it.
    If your main thread has an error and you want some worker thread to exit, you should add code to the cleanup of your main thread's sequence which signals the worker thread to exit (you should already have some sort of mechanism for signaling the worker thread to exit (there are many ways to do this, for example, a boolean variable passed by reference to the new thread's sequence, or a TestStand notification).
    If your main thread is getting an error, but is stuck inside a step, that problem is probably specific to something your code is doing, that is not the normal behavior of TestStand. You will need to provide more details or an example sequence in order for us to better understand what is happening.
    Hope this helps,
    -Doug

  • What does "The operation could not be completed because an error occurred when creating frame 0 (error -1)." mean, and why does it keep happening?

    So I've been trying to export a video file from Motion 5 (and FCPX), and I keep recieving the message "The operation could not be completed because an error occurred when creating frame 0 (error -1)". I've found the problem has something to do with a video file in the project, Ive tried multiple versions of said file, in multiple formats (.mov, h264, etc.), and I keep getting the same result.  The file was originaly a 640x480 wmv file. Any suggestions?

    I ended up figuring out a solution, but I'll get to that in a sec.
    To answer your question, I converted the .wmv file in a program called Media Converter (available in the App store), and converted it to an h.264 file (then later to a .mov file, and then to an .mpg). I could view the file, and work with it in projects, but any project I tried to output with any version of said file, would result in the afor mentioned message, with the same results in FCPX (and Compressor 4 as well).  I tried multiple frame rates, resolutions, files types, re-converting the file, all with no luck.  My impression from said experiments, and reading other discussions was that it was a corrupt file. 
    Then I got frisky...and a little desperate. I brought the converted file (the .wmv to .mov) into Motion 4... and an export worked first try.  So I exported a pro-res file from Motion 4, and used that file in the already built Motion 5 project, and voila! 
    So, who knows what that means in real terms, as for the whats and whys.

  • Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. what now?

    Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. What now?

    I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?

  • When I click Convert to Word docx, I receive the error message -- "An error occured when trying to access the service." This has been happening for about a week.

    Export PDF will not convert a pdf to MS Word. This failure has been going on for about a week. The error message is "An error occurred when trying to access the service." What can I do to get this working again?

    Hi,
    It seems it was working fine earlier.
    Is this happening with all files?
    You can try using different browser.
    Regards,
    Florence

  • ???  I just installed Lightroom 5 from Amazon for my Mac with 10.10.1 software.  When I open it I get: "An error occurred when attempting to change modules".  It won't import photos and has no side panels under Library.  What should I do?

    I just installed Lightroom 5 from Amazon for my Mac with 10.10.1 software.  When I open it I get: "An error occurred when attempting to change modules".  It won't import photos and has no side panels under Library.  What should I do?

    I Nearly bought from Amazon too but I found a thread from Adobe stating that the only recognized outlet for lightoom is themselves and other outlets serial numbers will not be guaranteed.
    THat at was sufficient for me to buy direct from Adobe, hope you get it sorted.

  • What happens if the exception occurs in a thread when it has a lock

    what happens if the exception occurs in a thread when it has a lock
    on object. Is the lock released ?

    Rastogha wrote:
    ok so lock is released if we are putting code in try-catch block. . right ?
    1) But suppose what abt runtime exceptions which i am not catching. It doesn't matter what kind of exception it is. The lock is released when control is transferred outside the sync block.
    2)Also the thread will be suspended in both the cases or not ( both cases mean for runtime exception and checked exception)Again, the kind of exception doesn't matter. Whether you're in a sync block or not doesn't matter: When an exception occurs, control transfers to the nearest catch block that can handle it. If you don't provide a handler for it, the thread terminates.
    If something is not clear, post code that shows the specific situations you're curious about. Make sure you use the CODE button or [code] and [/code] tags.

  • 'An unknown error occurred' when exporting the ibook. And it failed to preview on ipad, too.what can I do? Thanks!

    'An unknown error occurred' when exporting the ibook. And it failed to preview on ipad, too.what can I do? Thanks!

    One of the following steps should help.
    Go step by step and test.
    1. System Preferences > Other/ Flash Player > Advanced >  Delete  All
         Press the "Delete All" button
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Quit Safari.
        Restart computer. Relaunch Safari.
    2.  Enable Plug-ins
        Safari > Preferences > Security
        Web Content:  > "Enable Plug-ins".
           or
        Internet Plug-ins >  "Allow all other plug-ins
    3. Check  whether you are currently  in  YouTube HTML 5 trial.
         http://www.youtube.com/html5
        At the bottom  left of the page  uncheck the box beside
       "You are currently in the HTML5 trial".
    4. Reset Safari.
        Click Safari in the menu bar.
        From the drop down select "Reset Safari".
        Uncheck the boxes beside all items.
        Check the box beside "Remove all website data".
        Click "Reset".
    5. Turn off Extensions, if any.
        Safari > Preferences > Extensions
         Now try YouTube.
    Best.

  • HT201210 why is there an error occurring when trying to do a software update ios6 on iphone 4s

    why is there an error occurring when trying to do a software update ios6 on iphone 4s??

    You might find this article helpful: http://support.apple.com/kb/TS3694
    It has the error range of 3000's which states
    Errors 3000-3999 (3002, 3004, 3013, 3014, 3018, 3164, 3194, and so on): Error codes in the 3000 range generally mean that iTunes cannot contact the gs.apple.com server on ports 80 or 443. This may be because out-of-date or incorrectly configured security or firewall software is interfering, an old version of iTunes is installed, an entry in your hosts file redirecting requests to gs.apple.com (see error 1004 above), or because of your Internet proxy settings. If you are using a proxy, try without using one or with a known-good network. If that does not resolve the issue, follow iTunes for Windows: Troubleshooting security software issues. Error 3014 may indicate that you need to free up more disk space on the computer before trying to restore again. Error 3194 most likely indicates you do not have the latest version of iTunes installed Update to the latest version of iTunes. 

  • HT201210 What to do when an error occurs after the restoring process? my phone wont turn on anymore

    What to do when an error occurs after the restoring process? my phone wont turn on anymore

    The phone is telling you to plug in your phone to your computer. Do that then let it sit for a few minutes and then try it again and make sure itunes is open when you do

  • HT5934 There an error occurred when downloading iOS 7 on my iPhone 4

    There an error occurred when downloading iOS 7 on my iPhone 4

    You might want to try to update it using your computer. Try this:
    iOS: How to update your iPhone, iPad, or iPod touch

  • Cannot attach files to email. get message "An internal error occurred when attempting to attach... " when do retry and "switch" can attach the file. What is the problem? Files attach ok with IE.

    Cannot attach files to email. get message "An internal error occurred when attempting to attach... " Have tried attaching docs and jpg. Same result , files don't attach. When click on try again and then "switch" the file does attach.

    Cannot attach files to email. get message "An internal error occurred when attempting to attach... " Have tried attaching docs and jpg. Same result , files don't attach. When click on try again and then "switch" the file does attach.

  • An unknown error occurred when Dreamweaver tried to connect to this Contrib

    Hello all,
    I just started having a Dreamweaver problem that's perplexing me...
    I have 2 machines, a G4 and a G5 both running Dreamweaver ( I have MX2004 and 8 on both machines, this problem effects both versions on the G5 only).
    Everything was humming along just fine until the other day when suddenly I was receiving error messages on my G5 stating
    "An unknown error occurred when Dreamweaver tried to connect to this Contribute site".
    Then my local folder containing the website that I was working on would go gray (in Dreamweaver) and lose it's folder icon. It would still look like it was there, just no icon. When I would click on the drop down triangle it would state, " The local root folder, (and the folders name), does not exist. Please select a new local folder by clicking the Manage Sites button".
    I then ran a couple of tests on the G4 and it connected fine, I was able to edit, upload/download, everything as usual. I then attempted to connect to the site with Transmit on the G5...no problem.
    In the site definition I remembered that it may be set up to work with Contribute sites, but this was not the case, the box was unchecked.
    I then had the idea to export the site key from the G4 and grab it onto the G5 and import it into Dreamweaver...I did this AND IT WORKED! Once...after that back to the 2 usual errors.
    I found a work around for now...do my editing/site building in Dreamweaver, and upload with Transmit...this works fine...I've found that the errors only happen AFTER I've connected with the site(s). I've tried this with the other sites I maintain and it was the exact same thing.
    Are there any similar experiences out there? This has really got me stumped... can't imagine what it is.
    Any help would be greatly appreciated.
    thanks
    G5 Dual 2, G4 Dual 1.4 GHZ, iBook Graphite SE   Mac OS X (10.4.4)  

    my firewall is off, everything worked up until a couple days ago when it randomly stopped working

  • "an error occurred when trying to change modules"

    When I switch repeatedly between Library and Develop with the R and E keys, I always sooner or later run into a problem where nothing happens when I press R. Really that should go the Develop module and enter crop mode -- what I'm usually trying to do, when this happens, is crop a bunch of photos. So I'll be using Library mode to identify the photos that need cropping, stepping through photos with the arrow keys, then when I find one that I want to crop, I press R, enter develop+crop mode, crop the photo, press E to return to library+loupe view, and continue.
    Sometimes this works 10 times, sometimes it only works twice, but always, relatively soon, when I press R, "nothing" will happen. Actually what's happening is an error dialog appears saying "an error occurred when trying to change modules", then the error dialog immediately disappears before I can read it. I know what it says, because if I click the Develop module with the mouse, I get the same message but it sticks around until I press OK.
    Once this happens, I'm entirely unable to use the Develop module until I quit the program. I had to quit and restart LR about 20 times during an hour of working with it last night, and this morning, in the first 15 minutes, I'm already on the 3rd restart.
    Anyone else see this?
    Details: LR 1.1 on Mac OS 10.4.10, 4-core Mac Pro, images are a mix of JPG from a pocket camera and NEF from a Nikon D40. I don't think it is related to the specific images, as it strikes apparently at random, and after exit and restart, I can crop that same photo, but a different one will eventually cause the same problem again.

    Sean, thanks for the Return key tip. I knew about that at one point, but lately I was trying to use Enter (the one on the numeric keypad, at the very lower right corner of the keyboard, which is really easy to hit with my thumb even when my hand is on the mouse! And Enter doesn't invoke the crop, so I forgot that Return did). That is a better way.
    I don't see the RE problem on my MacBook, only on my desktop computer, and that one is also experiencing other flakiness (
    metamatt, "missing text / thumbnails / many Lightroom UI elements disappeared" #, 18 Aug 2007 3:08 pm) so I think I'm going to try a complete reinstall there.

  • Internal error occured when writing

    Hi all
    I successfully imported an APO planning area into the quality systems, however the same request ends with error 12 in the production system. Landscape is SCM 5.0 sp8 with BI 7.0 sp12. When i checked the import job RDDEXECL (user DDIC), it shows:
    Date Time Message text Message class Message no. Message type
    07/08/2007 00:02:57 Job started 00 516 S
    07/08/2007 00:02:57 Step 001 started (program RDDEXECL, variant , user ID DDIC) 00 550 S
    07/08/2007 00:02:57 All DB buffers of application server <server_name> were synchronized PU 170 S
    07/08/2007 00:03:17 <b>Internal error occurred when writing</b> D0 054 E
    07/08/2007 00:03:17 Job cancelled after system exception ERROR_MESSAGE 00 564 A
    I thought there will be an ABAP dump, I found this internal error (in bold in the log above). I tried searching for info on this but no help, it does not says error writing to what? Please help.
    Thanks
    Ali

    It seems a syncronization problem..
    You can create a customer message providing the following information:
    1. The symptoms that occurred
    2. The highest Support Package
    3. The current SAP_BASIS Support Package level
    4. The queue that is currently selected
    Header Data

Maybe you are looking for

  • SolMan_NW_CRM_SRM Installation info needed

    Hi  Guys, this time i am trying to install  Solution Manager 4.0 sr 2.0  with  sql server 2005 sp2  including NW 2004s  and ERP 2005.   i had the confusion what need to install first (either Solution manager or  SQL server)     and then what next. it

  • Custom cursor using image gets resized bigger

    I have created a custom cursor using the following code: ClassLoader cl = this.getClass().getClassLoader();      Toolkit tk = Toolkit.getDefaultToolkit(); Image im = tk.getImage( cl.getResource("images/wallcursor.gif")); Cursor Custom_Cursor = tk.cre

  • Mimicking columns between different sheets in numbers 3.0

    If I want to mimic a particulair column on a differnt sheet, how would I do that? Thank you. Manny

  • Help understanding Analyzer output

    Can anyone help on understanding the db analyzer output attached ? The MaxCPUs message is clear I'd like to understand there are some issues that can be fixed. Thank you !! ===== #0          at 2009-03-20 11:53:42 *  I  Database Analyzer configuratio

  • Why  I entry the portal with url:ip address is not work?

    But when I use the http://servername:50000/irj/portal every things is ok. Whe I user the http://192.168.xx.xx:50000/irj/portal I can not click create a new folder. The menu toolbars does'nt appear on my screen and have error javascript "Access is Den