Is there a way to detect a bad http client handle before it locks up LabVIEW?

The attached VI demonstrates a simple way to hang LabVIEW such that the only way to recover full use of it is to kill the LabVIEW process. LabVIEW version is 11.0.1f2 and this problem will occur in both WinXP and Win7.
Is there a way to detect when an HTTP Client Handle refnum is stale and should not be used?
Is this a known bug?
Attachments:
Hang after Bad HTTP Client Handle.vi ‏15 KB

Have you tried the bad reference comparator?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Is there a way to detect two keys at the same time?

    Is there a way to detect the keys if the user is holding two keys down at the same time?

    yes, but you'll have to check outside of the event loop (i.e. don't check for it in the keyPressed method).
    just use an array of keys that keeps track of which keys are currently down and which are up. you could use a boolean array but I use an int array because... Im not sure I've just done it probably because of my C background. anyway, basic setup:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class MultiKey extends JFrame {
         int keys[];
         public MultiKey() {
              super();
              keys = new int[256];
              Arrays.fill(keys,0); // 0 = key is up
              enableEvents(AWTEvent.KEY_EVENT_MASK);
              show();
         public void processKeyEvent(KeyEvent e) {
              // the 0xff below binds the key code to below 256
              int key = (e.getKeyCode()&0xff);
              if (e.getID() == KeyEvent.KEY_PRESSED) {
                   keys[key] = 1; // 1 = key is down
              else if (e.getID() == KeyEvent.KEY_RELEASED) {
                   keys[key] = 0; // 0 = key is up
         protected boolean isKeyDown(int key) {
              return (keys[key] != 0);
         protected boolean isKeyUp(int key) {
              return (keys[key] == 0);
    }so now at any time in your code you can check key state by using the isKeyUp and isKeyDown methods. this is about as close as you get to input polling in java unless you use LWJGL or something similiar ;)
    you can try out a full executable example at my site here - just open up the jar and start holding keys down :)

  • Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? Thank you from France.

    Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? thanks from France

    Look in you main photo library. Are there doubles or triple photos there? If so delete the extras.
    All photos are stored in the photo library. When you move a photo into an album the photo is not duplicated. The album contains a pointer back to the original photos. These pointers or aliases take up very little space.

  • Is there a way to detect motion and set markers automatically?

    My video includes walking around with the camera.  I walk, then stop and hold the camera in one area, then pan, then continue walking (and repeat). 
    While panning, there is some annoying flicker of vertical objects (beams, poles, whatever).  I can use a horizontal fast blur to fix this, but I only want the blur applied when there is panning (not when the camera is relatively still).  Doing it manually is cumbersome.
    Is there a way to detect when motion is going on (over a certain threshold)?  I would like PP to tell me when there is significant motion, and place markers in the points where it begins and ends (when motion goes over a threshold and then when it falls below the threshold).
    Thanks, experts!

    One thing you can try is to bring your footage into Prelude - it will lay out the entire clip so you can see thumbnail snapshots for the whole clip at once - that might give you a good start to see where there is a lot of motion.  Then, you can add markers very easily at all of those points - and when you send it over to Premiere, the markers will show up on your clip. 
    Not automated, but a good workflow to achieve what you are looking for.

  • Is there a way to detect a other iphone near me

    Is there a way to detect a other iphone near me with a app or any other functionality of the iphone

    Just any iPhone? or one in particular?
    Find my Friends will allow you to locate people who have iPhones and have explicitly agreed to share their location with you. There are some third party apps which will allow you to locate people as well.
    Other than that, no.

  • Is there a way to detect if Excel is busy?

    I have a VI that is testing three products at the same time, and writing data to three different excel spreadsheets.  If more than one subvi is writing to Excel at the same time, I get an error.  Is there a way to detect if Excel is busy, and wait until it is not busy?
    metzler CLAD

    The correct answer is the one that Putnam (and others) suggested: Encapsulate all the logic to perform a single write into a VI that is used wherever you need to write to an Excel file. This structure will guarantee that the code will only be writing to Excel from one place at a time.
    If you don't want to have the different sections of the code waiting for their turn to come up, a variation on the theme would be to create a separate stanalone process that does nothing but write to Excel files. The rest of the code would pass it the data to be written using a queue. With this approach everybody seems to write at the same time, but the standalone process is actually serializing the Excel operations. This approach could even be extended to include the ability to read from files, but that is as they say, "...left as an exercise for the reader..."
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Is there a way to detect the end of a video?

    Is there a way to detect the end of a video.. .mp4 or youtube? I want to be able to detect the end of a video and then have it do something...ie play on timeline or go to and play symbol.

    For youtube the code would be something like this:
    view-source:calkaweb.herobo.com/video.html
    for HTML5 videos for youtube replace &version=3 with &html5=1 in the youtube URL
    I have no idea how to impletent the youtube code into Edge tho other than an iframe but that wouldn't work I've tried :
    http://forums.adobe.com/thread/1285212
    You would need to place all of the youtube codes into edge in order for it to work but I duno how to do that and no1 answered the question in the thread I made about it.
    as for MP4/HTML5 video you can use
    var video = document.getElementsByTagName('video')[0];
        video.onended = function(e) {
          /*Do Something*/

  • Is there any way to search for bad blocks in my Macintoshi HD without formating it? I'm experiencing too much I/O problems...

    Is there any way to search for bad blocks in my Macintoshi HD without formating it? I'm experiencing too much I/O problems...

    Check the drive health with the free demo of SMART Utility.
    http://www.volitans-software.com/smart_utility.php
    Reformatting and zeroing out might keep a drive going a bit longer, but once bad blocks become noticeable, it's not a drive you should trust any longer.

  • Is there a way to create a password protected folder for pictures or lock the photos app? For Ipad Air and Iphone 5s.

    Is there a way to create a password protected folder for pictures or lock the photos app? I want to do this for Ipad air and Iphone 5s. I have other family members that use my Ipad and Iphone and do not want some pictures to be able to be viewed.
    Thanks

    Use 3rd party apps like Photo Manager Pro.

  • Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?

    Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?
    I have a cluster with 90 values..  ninety!  yes that many.
    Change one bloody value and the prototype changes in the TestStand step...  Reload the prototype and guess what happens??!!??
    All the bloody values get reset to defaults!  AAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGHHHHHHHHHHHH!
    If it was in one place, I could survive the ordeal.  But I have to change bloody prototypes in many places!!!!
    more AAAAAAAAAAARRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!
    I can't even copy the bloody values!!!!!!!  AAAAAAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!
    Are there any tricks that I am not aware of, or have forgotten over the years, or...  ...   something??!!??!???!!
    If there are none, I will have to post an improvement to TestStand..  I should mention I am using an older version (4.1).

    Hmmmmmmmmmmmmmmmm,
    I am not not very famous with LV and its cluster types.
    So no idea if this works (it works for DataTypes updates very well and a LV cluster is Data Type so.... maybe)
    Make a copy of the step that has to be modified to an new sequencefile. 
    Make modifications the in the copy.
    Now you should have the same DataType Name but other contents in the container. Save it.
    Normally there should be a message box that tells you that version has been incremented. - Accept it.
    Set in StationOptions-File "Allow Automatic ...." to Never.
    Open original sequencefile. Now the there must be a type conflict. Accept/Apply to all  "Use Current Loaded.."
    You have updated the type.....
    Hope this worked,
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • If my phone is disabled.. Is there any way possible to do a iCloud back up before restoring my phone

    If my phone is disabled.... Is there any way possible to somewhere back up my stuff before I restore my phone

    Once the Device is asking to be Restored with iTunes... it is too late to save anything...
    See Here  >  http://support.apple.com/kb/HT1808
    Once you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    Hi, thanks for the answer, I did that already. Unfortunatly this doesn't help me at all, as I often forget to check the menu. For me composing the message is writing the text, the subject, the person to who is addressed and than press "send".
    I often forget to check the "from", and this is a problem because the software select itself one of the accounts.
    Isn't there a way at least to put as a default a blank field instead of one of the accounts? or an account which doesn't work so if I forget to specify the "from" I will be rnotofied that the message can't be sent.
    I guess this could be a rather common problem for many people!
    Thanks
    Sergio

  • I lost my iPhone a few days ago and I put it on the lost mode. I don't want to give up looking for it. If a person stole it, is there a way for them to get into it or is it locked? I don't want to give up!!!

    I lost my iPhone a few days ago and I put it on the lost mode. I don't want to give up looking for it. If a person stole it, is there a way for them to get into it or is it locked? I don't want to give up!!! But if there is a way that they could get in and take over my phone with a new number without me deactivating the iPhone and activating a different phone with my number.

    lost mode don't depend of the sim card. If you take your Iphone on Lost mode... anybody can use it with the original card sim or with an other one.
    Did you try to localise it ?
    But hope that thief don't make a restore of the Iphone... Call your Mobile Operator to try to block the IMEI Number.

  • When I forward an email from my Mac Mail, the body of the email I just forwarded shows as an attachment in the recipients outlook.  Is there a way to change this so my clients don't have to open an attachment to read something that I forwarded to them?

    When I forward an email from my Mac Mail, the body of the email I just forwarded shows as an attachment in the recipients outlook.  Is there a way to change this so my clients don't have to open an attachment to read something that I forwarded to them?

    Open Terminal in Utilties and copy/paste
    This will send the attachment embedded inline. (This works in Snow Leopard, but not sure about Lion. Do a test first. If it doesn't work, just google "send attachment embedded + Lion." You don't actually have to send the message to see how it will appear.)
    defaults write com.apple.mail DisableInlineAttachmentViewing 0
    To reverse the setting, change the 0 to a 1
    However, whether this will work or not will depend on what the e-mail client on the receiver's end does with it.

  • Is there a way to make a self-signed client certificate with keytool...

    Is there a way to make a self-signed client certificate with keytool
    that will install successfully into the personal store in IE?

    hi,
    It is possible to make a self-signed client certificate with keytool and i am successfully using in my dummy application.
    The first thing you need to do is create a keystore and generate the key pair. You could use a command such as the following:
    keytool -genkey -dname "cn=Mark Jones, ou=JavaSoft, o=Sun, c=US"
    -alias business -keypass kpi135 -keystore C:\working\mykeystore
    -storepass ab987c -validity 180
    (Please note: This must be typed as a single line. Multiple lines are used in the examples just for legibility purposes.)
    This command creates the keystore named "mykeystore" in the "working" directory on the C drive (assuming it doesn't already exist), and assigns it the password "ab987c". It generates a public/private key pair for the entity whose "distinguished name" has a common name of "Mark Jones", organizational unit of "JavaSoft", organization of "Sun" and two-letter country code of "US". It uses the default "DSA" key generation algorithm to create the keys, both 1024 bits long.
    It creates a self-signed certificate (using the default "SHA1withDSA" signature algorithm) that includes the public key and the distinguished name information. This certificate will be valid for 180 days, and is associated with the private key in a keystore entry referred to by the alias "business". The private key is assigned the password "kpi135".
    Also please go through the http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html
    This would help u better.
    bye,
    Arun

Maybe you are looking for

  • PGP Encryption using Module in PI 7.1

    Hi Experts, We have devoloped a module for PGP Decryption and deployed as a module in  our PI 7.1 server . We have placed the public and private key certificates(Privatekey.txt,PubKey.txt) and jar files (bcpg-jdk15-1.44.jar,bcprov-ext-jdk14-146.jar,b

  • Reading huge flat file through SOAP adapter

    Hi Everybody,     In one of our interface we need to read big flat file using soap adapter at sender side into xi and we are using java map to convert into xml. but before that i need to split this flat file into multiple files  in the first message

  • How i save Buzzword document in my computer?

    dear friedns have create buzzword document,now i wana save that doc in my computer. how to save that? help required? i dont know where it save when i save that doc.

  • MSI 648 S-Bracket

    I am intrested in purchasing the optional S-Bracket in order to connect a 5.1 speaker setup to my MSI 648Max board. However I am unable to find an online retailer that actually sells this S-Bracket. Where can I find one in the UK?

  • Is JSF fitted to build a multi-views application?

    Hello, I'm looking for technologies to build a new Web application and investigating JSF, but I need experienced advices to make my mind if JSF is fitted with this type of application. This application will use a MVC model, but instead of a simple HT