Is there a tool that reads the number of assigned RefNums (primarily Queues)?

Hi-
I have been troubleshooting a memory leak caused by queues, and have found the following link helpful:
http://forums.ni.com/ni/board/message?board.id=170&message.id=85418&requireLogin=False
My question is: Is there a tool that I can use that will show me how many refnums are opened in memory? Preferably with the references name? It would make verifying queue memory leaks and their eradication so much easier! If such a tool does not exist, could it be added to the VI profiler sometime in the future?
Thanks!
-Randy

BUMP. I am curious too.  But I suspect not.
A couple of things:
Looking queues up by name creates a new reference to that queue (even if it exists).  So if you have a VI that runs for a long time repeatably looking it up by name, it will bleed the memory dry.
Setting the "force destroy" of the release queue to true will destroy all references to that queue.  Freeing up that memory.
As you are aware, I uses queues in my primary architecture.  I have run them in 30 plus day trials with no problems.  (I realize this is not helping you.) so by NI side implementation, there is no problem.
I am not sure how much of a bear it would be, but you could wrap the "create queue" and log the number of creates that you are running. You can wrap the release queue, and see which are getting released.  Keep in mind if you "create" the same queue twice you will have two references open to that queue.  Force destroy closes both, otherwise, you are left with the remaining.  It is a management nightmare.  The latest incarnation of my statecase manager implements queue tracking. The nice part of this, is that I can actually pass events to any queue running, and save myself the trouble of looking it up by name.
But you do have your work cut out for you, depending on the size of your program. 
Good luck.
Paul <--Always Learning!!!
sense and simplicity.
Browse my sample VIs?

Similar Messages

  • Are there any tools that automate the conversion of SSJS to JSP?

    What about a "wrapper" servlet to run the SSJS, do they exist? We are upgrading to Iplanted Web Server 6.0 and are looking for alternatives to a re-write

    Rhino is an implementation of JS written in Java. I have only a limited amount of knowledge about it, but my understanding is that it might be helpful both in terms of a migration path (allowing you to execute JS from within Java) and in terms of code conversion (converting JS to Java).
    http://www.mozilla.org/rhino/
    Let me know if it is helpful.
    David

  • Is there a way to find the number of downloads of music from itunes store?

    Hi,
    Is there any way to find the number of downloads of each music file available on itunes store. If not exact no of downloads but atleast a relative term to find the rank of the music track From any API
    Thanks
    Sandeep

    A: Is there a way to read the number of active sequence executions from the Engine?

    Scott,
    > One way of handling the issue of init once a set of instruments is to
    > create a new sequence file that has a sequence to init and a sequence
    > to close the instruments. Assuming that you always terminate a
    > sequence and do not abort them, you could add a ProcessSetup and
    > ProcessCleanup callback sequences to the client sequence file that
    > using these instruments. These callbacks are automatically called by
    > the process model in both the Single Pass and Test UUTs execution
    > entry points. The callback sequences could call the init and close
    > sequences for the hardware. In the hardware sequence file you could
    > reference count the number of execution that init and close by setting
    > the file globals in the sequence file to be shared across executions
    > and then add a numeric value that keeps track of references for the
    > instruments. The init sequence adds to the count, and the close
    > sequence subtracts from the count. The init sequence inits the HW if
    > the count is 0->1 and the close sequence closes the HW if the count is
    > 1->0.
    >
    > This is one of many ways in TestStand that this could be done, not to
    > mention that this could also be done in a similar way in a LabVIEW VI
    > or DLL directly.
    That sounds like it will work. I'll try adding a client count
    increment/decrement in the DLL initialize and terminate functions. This
    should essentially perform the same tasks as the callback scheme you mention
    above, no?
    The reason I didn't think the 'client counting' scheme would work initially
    was I mistakenly thought that the termination function would not get called
    under Terminate conditions. Since Terminate conditions happen a LOT during
    our initial debug of new UUT types, I didn't think that would be acceptable.
    I forgot that lacing the terminate funciton in a cleanup step group, I can
    force it to be called in Terminate conditions.
    > If you abort an execution then the reference counting idea above would
    > fail to decrement properly. That might b... [Show more]

    Read other 5 answers

  • Is there any tool that can display the internal structure of a F4F file?

    Dear all,
    I want to view the internal structure of an f4f file, Is there any tool that I can use to do that?
    Thanks,
    Xuedong

    check the table AUFM (Goods movements for order)
    pass inputs to all the key fields.
    and another table AFPO
    try to use these tables.
    regards,
    sateesh.

  • Hey guys, I'm having trouble matching the colour of the image back ground (white) with the pre-set colour selection. is there a tool that can help me? thanks

    hey guys, I'm having trouble matching the colour of the image back ground (white) with the pre-set colour selection. is there a tool that can help me? thanks

    Your description of the problem is not quite clear so I made certain assumptions. I hope I am rigtht. I believe you have a color patch such as this:
    that you would like to place in an image area that has modeling in its white background. You do not want to lay in a flat color but rather to add a color and not lose the modeling or other background tone. The problem is, after making the selection, if you use Edit > Fill and set the Blending mode to Color, the white background remains white. The only colored background area may be an object's shadow or some similar area that is not pure white. (Image 2) It is an unsatisfactory result.
    If that is an accurate description of the problem, consider this:
    Image 1: The original image
    Image 2: Edit > Fill with the Blending mode set to Color. White remains white
    Image 3: Mode changed to Lab Color. Edit > Fill with the Blending Mode set to Color. Then return to RGB.
    (I would not normally use this green as a replacement color but since it is a Tiffany clock, I chose a light version of Tiffany's trademark color.)

  • Is there a tool that I can use to get web pages that fit to the monitor screen

    Is there a tool that I can use to make webpages fit the size of my monitor screen instead of having to scroll side to side to read an email?

    Hi notmarriedanymo,
    You can try using [https://support.mozilla.org/en-US/kb/how-do-i-use-zoom Zoom]. This will increase/decrease the size of everything on the page. You can try hitting ''CTRL and +'' a few times to try it out. ''CTRL and 0'' will return it to normal size.
    Hopefully this helps!

  • Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Thanks Kelly,
    The answers would be the following:
    1200 cells per custom section (NEW COUNT), and up to 30 custom sections per spec.
    Assuming all will be populated, and this would apply to all final material specs in the system which could be ~25% of all material specs.
    The cells will be numeric, free text, drop downs, and some calculated numeric.
    Are we reaching the limits for UI performance?
    Thanks

  • My ipod shuffle 1st generation won't restore. There is an error that reads "The ipod cannot be restored. An unknown error has ocurred (1442)". The lights blink orange and green simultaneously...and it just won't restore. help?

    So it's the little thin ipod with no screen...that has the usb thing and the landyard. Whenever I try restoring it it tries to restore and then a message pops up. There is an error that reads "The ipod cannot be restored. An unknown error has ocurred (1442)". The lights blink orange and green simultaneously...and it just won't restore. help?. I have literally tried restoring it like 10 times and nothing happens. When i connect headphones it does not hear and that little light think happens....which i had never seen happen before. I need to fix it. ....please help....if i take it to an apple store....will it cost alot to fix that?

    reset utility should help...for mac
    http://www.apple.com/support/downloads/ipodresetutility103formac.html
    for windows
    http://www.apple.com/support/downloads/ipodresetutility104forwindows.html

  • In mini bridge is there anywhere that states the number of items currently in the filmstrip?

    Hello,
    In mini bridge is there anywhere that states the number of items currently in the filmstrip?
    Thank you.

    Hi,
      There is no limit on no of items in a list box.
    Check in the properties of the list box whether you gave the source data, destination properly.
    And also under the bahaviour tab set "insert on" property on mouse click.
    Hope this helps
    uma

  • I plugged my iPod touch (4th generation) into my computer and when iTunes popped up, there was a notice that read "The iPod cannot be used because the Apple Mobile Device service is not started". What does this mean and what do I do?

    I plugged my 4th generation iPod touch into my computer and when iTunes popped up, there was a notice that read, "The iPod cannot be used because the Apple Mobile Device is not started". What does this mean and what do I do?

    Type "Apple Mobile Device Service" into the search bar at the top of the page by Support and read the help article.

  • How do I put timecode on the storyline.  In FCP 7 there was a time code reader that read the actual TC on the source material.  There isn't one in FCP 10.1...Any recommendations???

    How do I put timecode on the storyline.  In FCP 7 there was a time code reader that read the actual TC on the source material.  There isn't one in FCP 10.1...Any recommendations???

    TC has not been lost...skimmer shows source TC.
    Nanoflash external recorder via SDI on a Sony PMW-EX3.
    Ok so Compressor will show source TC on an individual clip, good I didn't know this and it will be helpful.
    My scenario.  I build a timeline with a whole days shooting involving many different clips and build a Sequence from that-editing out the off camera questions/mistakes etc.  In the past I would export with source TC with a Timecode Reader filter applied.  Now, it is a TC Generator filter that is available that starts from 00:00.
    1. Possible solution, forget the source TC since I have a timeline built with (counter) TC on it and send that to client or get Apple to add it in the future.
    2. Apply TC Generator on a clip by clip basis and manually change the TC to match source material.  Probably too, much effort though.
    Chris

  • There was a problem reading the layer data. Read the composite data instead?

    I can't open my psd with properly in Photoshop, it keeps showing :There was a problem reading the layer data. Read the composite data instead? 
    Photoshop cc
    Help please

    I just discovered this issue. Apparently if your PSD document has a tonne of layers, it will save normally. Then suppose you are working on it one day, and create lots of new additional layers...saving that will then corrupt the PSD file, as apparently the number of layers exceeds some hidden limit. You will not be able to load that back in, as Photoshop doesn't appear to allow you to do that.This issue appears for both PSD & PSB files. I lost a few weeks of updates, but recovered thanks to a few backups.
    One clue you can use to ensure you don't inadvertently save over the file (thereby corrupting it), is to try duplicating a layer or a group of layers. You will not have the option to do so. If you encounter that, immediately open a new file, and drag a few groups of layers to the new document (and deleting them in the original document). You should then go back below the 'limit', allowing you to save normally.
    As for the original corrupted file, well I tried repairing it with a whole host of tools. But nothing worked ....
    MacReady: Any way we can we fix it?
    Garry: It's gone, MacReady.

  • Is there any tool to measure the instruction set usage?

    Hi,
    Is there a tool to measure the instruction set usage?
    I think there must be. But where is it? Is there a
    command in Solaris?
    Thanks.
    wizzard1

    Hi,<br><br>
    Your question is a bit vague. Are you talking about the SPARC<br>
    instruction set usage, profiling, coverage or something else?<br>
    There are a number of utilities distributed as part of the Sun<br>
    compiler that may help you, such as:<br><br>
    prof, tcov, looptool.<br><BR>
    You might also want to have a look at this White Paper<br>
    Delivering Performance on Sun: Optimizing Applications for Solaris<br>
    <br>
    Hope this helps.<br>
    <br><br>
    Caryl<br>
    Sun DTS<br>

  • IS THERE A FUNCTION TO RETURN THE NUMBER OF MONTHS OR DAYS?

    I know that you can do a months between function between 2 dates divided by 12 and get years but is there a function that can return the number of months between 2 dates or the number of days between 2 dates in a select statement for a report? These 2 dates are entered in an Oracle forms.
    I have 2 dates.
    BEG_SVC_DT 30-JUL-1995 DATE FORMAT
    END_SVC_DT 981007 VARCHAR2 FORMAT Positions 5 and 6 are the days.
    I must subtract BEG_SVC_DT from END_SVC_DT.
    In PLSQL I add 31 to 07 and get 38. I subtract 30 from 38 and get 8.
    or I have 2 dates
    BEG_SVC_DT 10-JAN-2003 DATE FORMAT
    END_SVC_DT 050924 VARCHAR2 FORMAT Positions 5 and 6 are the days.
    I must subtract BEG_SVC_DT from END_SVC_DT.
    In PLSQL I subtract 10 from 24 and get 14.
    In both scenarios the end_dt field must be VARCHAR2 because the user has to enter the word 'PRESENT' . Is there a function in SQL that would compute the
    number of days between 2 dates?
    Is there a function to get the number of months between 2 dates?
    I have 2 dates.
    BEG_SVC_DT 12-JUL-2004 DATE FORMAT
    END_SVC_DT 050807 VARCHAR2 FORMAT Positions 3 and 4 are months.
    I must subtract BEG_SVC_DT from END_SVC_DT
    JUL is the 7th month.
    In PLSQL, I subtract 07 from 08 and get 01
    Or I have 2 dates
    BEG_SVC_DT 13-NOV-2004 DATE FORMAT
    END_SVC_DT 050429 VARCHAR2 FORMAT Positions 3 and 4 are months.
    I must subtract BEG_SVC_DT from END_SVC_DT.
    NOV is the eleventh month. 04 is less than 11.
    In PLSQL I have to add 12 to 04 and subtract 11 from 16 to get 05.
    In both scenarios, the end_dt field must be VARCHAR2 because the user has to enter the word 'PRESENT'. In SQL, is there a function to compute the number of months between 2 dates?
    I am doing my calculations this way because this is the way that the user has been doing them when they created the report manually.
    The database that I am using is Oracle 9.2.0.6
    Report Writer Report Builder 6.0.8.22.0
    Forms 6.0.8.22.1

    In your example:
    BEG_SVC_DT 30-JUL-1995 DATE FORMAT
    END_SVC_DT 981007 VARCHAR2 FORMAT Positions 5 and 6 are the days.
    I must subtract BEG_SVC_DT from END_SVC_DT.
    In PLSQL I add 31 to 07 and get 38. I subtract 30 from 38 and get 8.
    Where is the "31" depending on, on year and month of BEG_SVC_DT or END_SVC_DT?
    What would be the answer for the following example
    BEG_SVC_DT 25-FEB-1995 DATE FORMAT
    END_SVC_DT 980407 VARCHAR2 FORMAT
    Do I add 28 (=number of days in FEB-1995),
    or 30 (=number of days in APR-1998),
    or 31 (= max number of days in any month?)

  • What is a delta migration and is there any tool that support delta migration?

    Hi,
    We are migrating from MOSS 2007 to SharePoint 2013.
    What is a delta migration and is there any tool that supports delta migration...Please help me understand.

    hi
    there are many tools are availabe in market like DocAve,Metalogic-Content migration and Quest Migration
    so as per my experince Content Matrix is good to support all the feature while migration form Sharepoint 2007 and Sharepoint 2010 or Sharepoint 2013.
    See the below link
    http://www.metalogix.com/help/Content%20Matrix%20Console/SharePoint%20Edition/002_HowTo/003_MigrationActions/020_IncrementalCopying.htm
    Please mark the answer if this help full..

Maybe you are looking for

  • Data back up  fastest way

    I wrote about this subject and a kind person gave a list with steps to back up using external drive no time machine because it will be inside mac I suppose and taking space. How to choose only ceratin data, e.g. iPhotos etc ? I cannot trace that mess

  • How can I sync my calendar in outlook with newest version of iTunes?

    I sync my iPhone with iCloud (iCal) for my mac at home, but my work calendar is in Outlook.  In the older version of iTunes I could synch with Outlook manually.  The newest version does not list that as an option.  Any help would be greatly appreciat

  • How to print the table values in fastest way?

    Dear Friends, I'm having table in my application and i need to print the table values. For that I used print() method to print the table values. boolean complete = tableObj.print(mode, header, footer, showPrintDialog, null, interactive,              

  • Can't migrate from G4 to new iMac

    I just brought home my new iMac today and can't transfer my info from my G4. It finds the firewire, but on the screen that calculates the size of the volumes to transfer it only finds the network. The users, applications and file sizes just "calculat

  • IMPDP: The job SYS_IMPORT_FULL_01 has halted due to a fatal error

    Hi, I'm having problems importing a database whose export was successful. The tool I'm using is expdp and impdp. The source schema is in a tablespace different from the target schema, but in the same instance of the Oracle database. I granted the rol