How can a dangling network stream endpoint be destroyed

I have a cRIO application that creates a network stream writer endpoint that communicates with a windows hosted app that creates a matching network stream reader endpoint.  I have found that on occasion an error in my software occurs and the rt vi that created the writer endpoint stops and the windows app also stops without destroying the endpoint.  The problem is that the rt vi that creates the stream endpoint is called with vi server and exists in the rt startup hierarchy and thus the endpoint name is preserved in memory.  When the process is repeated and the stream is created again the create endpoint vi errors out saying that the stream already exists.  Since the original stream refum is lost, my question is how can one deal with this kind of situation.  Unfortunately the create network stream vi's do not have a option to overwrite any existing endpoints.  I will agree that this sort of thing should not happen in a working application but during debug it is quite frustrating.

Hey Sachsm,
You will want to set up your program such that in the event of an error your application does not exit immediately so that you can still close your network stream references.  You can do this by wiring the error wire through your program and when you detect an error on it stop your loop, close all references, and then pass the error to an error handler. If you don't close your references before the program exits (either by an error or the Abort button) then you will probably have to close LabVIEW to get the references to close.  Post back if you have any questions on this.
Regards,
Kevin
Product Support Engineer
National Instruments

Similar Messages

  • How can I get netflix streaming audio, the video is fine but the audio coming through is from the TV(dish)

    how can I get netflix streaming audio, the video is fine but the audio coming through is from the TV(dish)

    It's exactly as I stated. Whenever I try to drag these kinds of loops (ESX24 / software instrument loops? the ones marked in green with the white music note next to them) from the loop browser into the timeline a message comes up saying Audio Not Found for that loop.  And a new track is created automatically when loops are dragged into the timeline, so I'm not creating some other random / synth instrument track so I'm not sure  what the deal is... But perhaps I'll try creating a software instrument track first and then drag the loop into that track and see what happens - maybe there's something with the default settings that automatically creates audio tracks whenever loops are imported?

  • HT201317 How can I remove Photo Stream from my PC?

    How can I remove Photo Stream from my PC?

    Go to the iCloud control panel for windows (Start>Control Panel, search for "iCloud", double-click the iCloud icon), then uncheck Photo Stream.

  • HT4906 How can i activate Photo Stream on my imac ?

    How can I activate  photo stream on my imac? The icon in icloud is shadowed and will not respond

    read the instructions - http://www.apple.com/support/icloud/
    LN

  • How can I have photo stream on Version 10.6.8

    How can I have photo stream on Version 10.6.8

    You can't. Sorry. Photo Stream requires MacOS X 10.7.5.  at least.
    See:  My Photo Stream FAQ - Apple Support

  • How can I get network data type

    how can I get network data type: ip, gatway, sub mask, and DNS on the Mac. windwos system and so go on and put cmd ipconfig / all adiquirr how can this data in mac book pro XOS.
    thanks,
    Marcello

    Select  ▹ System Preferences ▹ Network ▹ Advanced ▹ TCP/IP.

  • How can i view the Streams process through 10g OEM

    I have successfully configured OEM on Oracle 10.1.0.3
    My question is:
    How can i view the Streams processes and queues so that i could monitor its functionality.
    In 9i Java Console OEM I was able to monitor Streams using the <Distributed> tab but I don't find any such option in 10g. Please help.
    Thanks in Advance.
    Regards,
    Raj

    There's a message on the Database Administration page of EM10g.
    "TIP      Use the Enterprise Manager 10g Java Console to manage Streams, Advanced Replication, Advanced Queues, XML Database, Spatial and Workspace."
    At present there is no way through the EM10g Web Interface, and I understand the Java version which comes with 10g doesn't contain any 10g new features.
    So I am still using OEM 9.2 in addition to EM10g
    Thanks,
    Alan...

  • How can I get which stream is exist in FMS?

    Hi. All.
    I'm developing webcam conference.
    As you see, The stream(named UserB) is Publishing & Viewing.
    How can I get which stream is connected in FMS? and How can I know the current state of Stream?
    I just get UserB is publishing the stream or not.
    Sorry for my English.
    Thanks in advanced.
    Kevin.

    I'm not sure that it's what you want but you can do something like this:
    for the checked radio button to getParent and then
    to try
    int i = tabbedPane.indexOfComponent( checkedRadioButton );
    and if you know the indexing of your radionbuttons you can find, It's for sure not nice
    solution but it is the first what come to me ;-).
    Best regards.

  • How can I import network tags programmatically

    How can I import network tags programmatically from a remote DSC module 6.1 application and save it to the local SCF-File ?

    Programmatic tag configuration/importing is not possible in 6.1. Some steps, specifically the importing, have to have user intervention.
    Regards,
    Khalid

  • HT1689 I redeemed a digital movie but have not downloaded it yet. How can I download or stream the movie after I've selected download later?

    I redeemed a digital movie but have not downloaded it yet. How can I download or stream the movie after I've selected download later?

    Hello geoff1718,
    The following article provides steps for downloading past purchases from the iTunes Store.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT2519
    Cheers,
    Allen

  • How can i disable network discovery

    i have domain with windows server 2008 and some pc's with windows 7
    how can i disable network discovery from this pc's using group policy from domain

    Hi,
    >>how can i disable network discovery from this pc's using group policy from domain
    In addition, the following thread can be referred to as reference.
    Network Discovery GPO to Disable It.                                 
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/ae458fcf-a6cb-4e9b-905a-2982fbb0dba3/network-discovery-gpo-to-disable-it?forum=winserverGP
    Best regards,
    Frank Shen

  • Can't create Network Stream connections between Win and RT

    In the attached example, why can't I get all four links to connect without errors? Here's a representative example of the result I'm getting:
    Attachments:
    network_stream_test.zip ‏18 KB

    Hi Bob -
    Yes, one pair of the streams failed to connect. That's what I'm asking about. The timeout is more than enough for them to connect if they will, as evidenced by the pair that did successfully make a connection. (I've also used Network Streams in a couple of applications already, and even across subnets they normally connect within 1 second, so a 10 second timeout isn't an issue here.)
    Yep, I'm aware of the Context Name. But as the Network Streams whitepaper says, and as you reiterated, the default context is assumed when it's ommitted from the URL. That's why one pair of the stream was able to connect in my screenshot. And I'm running my example  in the dev environment anyway, so contexts shouldn't be necessary in the URL at all.
    If you like, you can grab the example I attached and run it yourself to help me investigate. Do all the endpoints connect successfully on your Win/RT setup?
    On a side note, can anyone tell me how to query the current VI's context? I'm certain there's a Server or Scripting node somewhere that does it, but I can't find it at the moment...

  • How can I calculate network bandwidth

    For Master-Master-Replcation with more 100 tables in more 10 replication groups I want to calculate the network bandwith. Do you have information about how can I calculate?

    Hi,
    Please have a look at below thread.
    #http://stackoverflow.com/questions/4590682/how-to-measure-windows-azure-bandwidth-usage-programmatically
    Here is a snippet.
    The Azure SDK doesn't provide any billing or consumption information programatically. As lgorek stated, you can approximate usage with IIS And WCF performance counters.And you'll also be able to use your own logging to track traffic from different users. 
    However, you won't be able to track bandwidth consumed when users download content from blob storage. Well, you could, but only if all of your blobs were private and you streamed their content through your web application instead of direct links on your web
    pages .
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder which does not have firewire out/input? it comes only with a component video output, USB, HDMI and composite RCA output?

    I need to do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder (http://store.sony.co...ber=HDRAX2000/H) ..this camcorder model does not have firewire out/input ..it comes only with a component video output, USB, HDMI and composite A/V video output..
    I wonder how can I plug this camcorder to the firewire port of my laptop? Browsing on internet I found that Grass Valley Company produces this converter http://www.amazon.co...=A17MC6HOH9AVE6 ..but I am not sure -not even after checking the amazon reviews- if this device will send the video signal through firewire to my laptop, in order to live streaming properly? ..anyone in this forum could help me please?
    Thanx

    I can't broadcast with the built in iSight webcam... how would I zoom in or zoom out? or how would I pan? I've seem people doing it walking with their laptops but that's not an option for me... there's nothing wrong with my USB ports but that's neither an option to stream video because as far as I know through USB you can't connect video in apple operating systems ..you can for sure plug any video cam or photo camera through usb but as a drive to transfer data not as a live video camera...  is by firewire an old interface developed by apple that you can connect all sorts of cameras to apple computers... unfortunately my new sony HDR-AX2000 camcorder doesn't have firewire output...
    thanx

  • How can you restore photo stream photos back to Apple TV after accidentally deleting from your iPad

    After accidentally deleting photo stream  photos on my iPad, this deleted photo stream photos on my Apple TV.  How can I restore these photos back to my Apple TV and also to  my iPad?  Suggestions welcomed

    If you have a backup of your iPad prior to the date of deleting your photos, you can find them. Otherwise, you might be able to find them.
    If you do have this backup, then you'll have to restore your iPad to that point.
    If you had a Mac with iPhoto, then when you connected your iPad, iPhoto would store the photos separately from Photostream.
    I despise Photostream. It's turned off everywhere on my system. It is one of the most useless pieces of junk that Apple has foisted on my Mac and iOS. But hey, that's just my opinion.

Maybe you are looking for