ViServer OpenLibrar​y gets Corrupted Memory error

I am trying to integrate LabVIEW into our ClearCase build process. At a basic level, we store all vis in libraries, we plan to make increased use of LabView projects.
Right now the team is using LabView libraries without projects. I have access to some of them. I can open them using LabView 8.51. A warning is issued for objects found in different places, but the vis in libraries can be opened. However, when I try to execute this code:
Set Args=WScript.Arguments
llbName=Args(0)
WScript.Echo "Looking for vis in library "& llbName
Set lvapp=CreateObject("LabVIEW.Application")
Set llb=lvapp.OpenLibrary(llbName)
Wscrpt.Echo "Found library "&llb.Name
this is what happens:
D:\Data\builds>cscript get_vis.vbs Z:\tse\Projects\NEXTGEN\Tests\CurrentLimit.llb
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Looking for vis in library Z:\tse\Projects\NEXTGEN\Tests\CurrentLimit.llb
D:\Data\builds\get_vis.vbs(5, 1) LabVIEW: LabVIEW:  Memory or data structure corrupt.
Looking over the object model, the only way I can see to get a list of vis in a LabView library is to create an instance of that library using the OpenLibrary method of Application.

Hi Bob,
Good call. It is always important to start with the requirements!
If you use a vi server it means that the LabView is being driven from the outside application, not the other way around. I am trying to drive LabView via the ActiveX interface. Most people do the opposite: inside LabView (the main application) access other software via ActiveX.
I am writing a process control system for our test engineers to automate the entire software development cycle by bringing together our project tracker (in-house) and our configuration management software (ClearCase) in such a way that no test engineer needs to know the arcane ClearCase commands, and all development work is done on branches that must be merged back to the main line for others to see the changes.
For projects larger than something small, or projects where multiplie developers must work on the whole system together, this branch - develop - merge idea is key. It enables developers to be very productive without stepping on each other's work.
The section "Source Control" in this document http://zone.ni.com/reference/en-XX/help/371361D-01​/lvdevconcepts/configuration_management/ refers to the concept of reserved checkouts, i.e. if I want to change a file I check it out reserved, so no one else can toudh it. This is an immature concept that does not work with more than 2 or 3 developers in a small team working on very focused projects. Branching eliminates the need for this coordination, but it then demands a robust way to merge changes.
ClearCase knows how to merge text. I have that part almost ready to release now. ClearCase cannot merge binary files, it can only recommend the latest version if that can be clearly determined, otherwise it is up to the developer to tell ClearCase what the latest version is, or to check in yet another version that is known to be the latest.
LabView vis are binary files. Since that is our main programming language, we cannot simply take an entire library or project that may have been worked on by 6 people over a 3 week period and wave a wand saying that a particular version is the latest. We must be able to do these things:
Detect that more than one person has changed the object. This ClearCase can do at the library or project level with no help from LabView.
Provide a list of what individual vis have changed. This must be done in LabView. I had wanted to get the list of all vis in a library or project by automating LabView, then automate the stepping through the list using the command line merge tool (lvmerge.exe) to detect vis that were really different.
Assist the developer to merge the changes by cycling through the vis that have changed automatically, opening up the vis in the merge tool so that the developer does not have to tediously click through the file-open nonsense for dozens of vis. The merges must be done in LabView, the sequencing could be automated externally or internally.
Mark successful merges. This is done in ClearCase.
In summary, the ability to merge individual vis is a non-starter when NI itself strongly recommends projects and libraries for organizing projects. To put it in simple terms, it is like me telling you I have this fantastic tool for merging text files, but the entire body of source code must be stored in zip files. So, if you want to use my tool, you must manually open the zip file, extract the text file, then work with it and re-zip it when done. You would not be happy.
Best regards,
Bill

Similar Messages

  • Why do I keep getting low memory errors when opening files in Bridge CS4? (New computer running i7 2.40GHz, 12GB RAM)

    Just picked up a new computer which has a lot more RAM than my old computer bu I keep getting low memory errors. Never had this issue on my old computer, any ideas?

    Windows or Mac?  (If the former, I can't be of any help.)  Exact version of your OS?
    How much available disk space?  Do you have a separate hard drive for Photoshop's scratch file?

  • After upgrading to FF7, I get Corrupted Content Error on certain web pages, Why?

    After upgrading to FF7, I get Corrupted Content Error on certain web pages, Why? When I try to log in to certain sites to get email or when I try to access a few sites I get a Corrupted Content Error message. If I use Internet explorer the sites work fine. I disabled my entire Norton internet security program and there was no change. Current OS is windows 7 on a hp platform.

    You can get such an error if there are multiple location redirects send via the HTTP response headers.<br />
    Firefox doesn't allow that for security reasons.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=681140 bug 681140] - Corrupted Content error due to multiple Content-Disposition header field instances
    ''(please do not comment in bug reports)''

  • Getting Virtual Memory Error in 4i Viewer/Plus

    I was able to get results yesterday with both Viewer and Plus, but not today. The user version still works.
    I can connect and see the workbooks. It says that it is running, but gets "An error occurred while attempting to perform operation".
    I set up a trace file and see the following:
    Virtual Memory Error : Maximum Heap Space Exceeded, increase the memory size under Cache Options
    Any thoughts? Where are the Cache Options set from? This is the Viewer, not client.

    I was able to get results yesterday with both Viewer and Plus, but not today. The user version still works.
    I can connect and see the workbooks. It says that it is running, but gets "An error occurred while attempting to perform operation".
    I set up a trace file and see the following:
    Virtual Memory Error : Maximum Heap Space Exceeded, increase the memory size under Cache Options
    Any thoughts? Where are the Cache Options set from? This is the Viewer, not client.

  • Getting virtual memory error when fetching records from database

    HI,
    I am using Oracle as Database and the Oracle JDBC driver. I have simple code which is a select statement but the problem is the resultset dies while fetching the data i.e. 5,50,000. And it gives me the memory error as its storing all in the memory. One of the way which i have serched in the old threads is using the batch method fetching rows at a time but can you tell me how to implement in my code. I am pasting my code.
    The overall functionality of my code is that it's reterving data from database and generating an XML file that would be validated with a DTD.
    //My Code
    public class Invoicef3 implements ExtractF3 {
         final String queryString = "select * from hsbc_f3_statement
    order by bill_no, duplicate,
    invoice_address1,
    invoice_address2,
    invoice_address3,
    invoice_address4,
    invoice_address5,
    invoice_address6,
    main_section, order_1, page,
    section, product_category,
    sub_sect_1, order_2,
    sub_sect_2, child_product,
    sub_sect_3, account,
    line,entry_date, currency, tier";
         public ArrayList process() {
              Connection con = null;
              Statement stmt = null;
              ResultSet rset = null;
              ArrayList arr1 = null;
              try {
                   con =
    ConnectionManager.getConnection();
                   stmt = con.createStatement();
              rset = stmt.executeQuery(queryString);
                   arr1 = new ArrayList();
                   while (rset.next()) {
                        arr1.add(
                             new F3StatementExtract(
                                  rset.getString(1),
                                  rset.getInt(2),
                                  rset.getString(3),
                                  rset.getInt(4),
                                  rset.getInt(5),
                                  rset.getString(6),
                                  rset.getInt(7),
                                  rset.getString(8),
                                  rset.getInt(9),
                                  rset.getString(10),
                                  rset.getInt(11)));
                   rset.close();
                   stmt.close();
              } catch (SQLException e) {
                   e.printStackTrace();
              } finally {
                   ConnectionManager.close(rset);
                   ConnectionManager.close(stmt);
                   ConnectionManager.close(con);
              return arr1;
    }

    The problem is that you are fetching and processing all the rows for the query, which the VM cannot handle given the heap space available. The points you could think over are:
    * Allocate more heap memory (this would help only to a limited extent)
    * Try to process only a few records at a time instead of all of them (there is actually no need to process all the records at a time. Try processing records in lots of say 1000)
    * Avoid selecting all the columns [SELECT *] from the table, if all of them are not going to be used.
    There is a slight change i have done in the code is that i am using two quereies now one is fetching all the Bills and the secondquery is fetching all the data for the relevant BILL.
    //My Code
    public class Invoicef3 implements ExtractF3 {
         /*Query to get distinct bill numbers*/
         final String queryString1 =
              "select distinct(bill_no) from hsbc_print_bills";
         /*Query to get distinct bill numbers statement details*/
         final String queryString =
              "select * from hsbc_f3_statement where bill_no='";
         public ArrayList process() {
              Connection con = null;
              Statement stmt = null;
              ResultSet rset = null;
              ArrayList arr1 = null;
              ArrayList arr2 = null;
              try {
                   con = ConnectionManager.getConnection();
                   stmt = con.createStatement();
                   rset = stmt.executeQuery(queryString1);
                   arr1 = new ArrayList();
                   while (rset.next()) {
                        arr1.add(new F3BillExtract(rset.getString(1))); //generating the Bill_No's
                   System.out.print(arr1.size());
                   rset.close();
                   stmt.close();
                   for (int i = 0; i < arr1.size(); i++) {
                        stmt = con.createStatement();
                        rset =
                             stmt.executeQuery(
                                  queryString
                                       + (((F3BillExtract) arr1.get(i)).getBill_No())
                                       + "'");
                        arr2 = new ArrayList();
                        /*Fetching the statement Details of the particular Bill_No*/
                        while (rset.next()) {
                             arr2.add(
                                  new F3StatementExtract(
                                       rset.getString(1),
                                       rset.getInt(2),
                                       rset.getString(3),
                                       rset.getInt(4),
                                       rset.getInt(5),
                                       rset.getString(6),
                                       rset.getInt(7),
                                       rset.getString(8),
                                       rset.getInt(9),
                                       rset.getString(10),
                                       rset.getInt(11),
                                       rset.getString(12),
                                       rset.getFloat(13),
                                       rset.getDate(14),
                                       rset.getString(15),
                                       rset.getInt(16),
                                       rset.getString(17),
                                       rset.getString(18),
                                       rset.getString(19),
                                       rset.getString(20),
                                       rset.getString(21),
                                       rset.getString(22),
                                       rset.getString(23),
                                       rset.getString(24),
                                       rset.getString(25),
                                       rset.getString(26),
                                       rset.getString(27),
                                       rset.getString(28),
                                       rset.getString(29),
                                       rset.getString(30),
                                       rset.getDate(31),
                                       rset.getDate(32),
                                       rset.getDate(33),
                                       rset.getDate(34),
                                       rset.getString(35),
                                       rset.getString(36),
                                       rset.getString(37),
                                       rset.getString(38),
                                       rset.getString(39),
                                       rset.getString(40),
                                       rset.getFloat(41),
                                       rset.getFloat(42),
                                       rset.getFloat(43),
                                       rset.getInt(44),
                                       rset.getFloat(45),
                                       rset.getString(46),
                                       rset.getString(47)));
                        rset.close();
                        stmt.close();
                        ((F3BillExtract) arr1.get(i)).setArr(arr2);
              } catch (SQLException e) {
                   e.printStackTrace();
              } finally {
                   ConnectionManager.close(rset);
                   ConnectionManager.close(stmt);
                   ConnectionManager.close(con);
              return arr1;
    }

  • When trying to generate pdf file from firefox 7.0.1 , getting corrupt content error, used to work with previous versions of firefox

    We have done toleration testing on firefox version 5 thru 6 and haven't got an issue with our website generating pdf files for our users. One of our users upgraded to firefox version 7.0.1 and they tried to generate a pdf report, now a screen pops up with Corrupted Content Error The page you are trying to view cannot be shown because an error in the data transmission was detected. I recreated this issue on my pc yesterday by installing firefox 7.0.1. Any hints as to what I need to look at would help. Cannot provide the url because it is a secure website for law enforcement. Thanks.

    You can turn off compatibility checking, but more and more of the Google Toolbar will not work. Google is no longer supporting the Google Toolbar so you should use the alternatives.
    Hi Mark,
    See http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    If you have an aspect that is not covered, indicate what that is; otherwise, expect you to be fully functional within 1-2 weeks.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • Added ram to mac pro, get ecc memory error and 4mem/9/40000006: B:0 C:0 R:0

    I recently purchased a 2.8 8 core Mac pro (early '08 model). It came shipped with 2gigs of ram (one gig on riser card a, one gig on riser b).
    I purchased 2 1gig sticks from ramjet, i followed a apple tutorial and installed the 2 original sticks in riser card A (slots 1 and 2), and the 2 new Ramjet sticks in riser card B (slots 1 and 2) for a total of 4gigs.
    When I powered on the computer everything was fine, clicked the black apple logo to view "about this mac" and the 4gigs total memory showed up. However when i clicked "more info" then "memory"... it showed the status on one of the new ramjet sticks as "ecc error"
    I rebooted the computer and the error message was gone, all sticks showed a status of "ok"
    a few days went by and i was constantly checking the system profiler and the status would always show the sticks as "ok" and the computer acts totally normal, i run pro tools, logic pro, photoshop and it would run flawlessly.
    The fact it showed an error a few days prior was still bugging me so i decided to call the applecare protection and consult with them... they said to remove and re-install the memory, reboot holding down the "option + command + R + P" to reset memory, then to reboot again holding down the "D" to do a Apple hardware Test.
    the first test showed pass, i checked the extended test and that showed a 4mem/9/40000006: B:0 C:0 R:0 error, the second and 3rd tests froze and i had to push the power button to reboot.
    I contacted Applecare once again and they said that since my computer was not acting funny nor freezing during apps or showing any errors that it should be fine, as long as the status said "ok" in system profiler and all four gigs registered in "about this mac" that no harm is going to happen.
    when i asked what that long error code was she said it did not come up in her computer but she thinks its because its not official apple memory.
    I tried searching online in forums to solve this but i cant find anything on that specific error code.
    sorry for the long post but i wanted to be as detailed as possible to get the best advice
    thanks and any help would be much appreciated.
    and by the way i did contact ramjet and they are willing to replace my memory but there advice was also not to worry that its only giving that error due to the memory not being "official" apple memory, but if it registers and the computer acts totally normal to just leave it be.
    thanks again,
    David
    Message was edited by: priv510
    Message was edited by: priv510

    thanks for the reply Kappy,
    yes they have heat sinks and ramjet states they are "apple grade"
    i downloaded the istat widget (not sure how accurate that is) and it says the apple sticks on A run at 32 degrees and the ones on B run at 31 degrees
    the comp is practically brand new and when i opened it for the ram install it still looked brand new (no dust) its only a few weeks old.
    I am going to return the sticks for sure to be safe but where im lost is.... yes it did show ecc error once, never again, its been a week now still no ecc error. I ran tech tool deluxe and everything passes, i ran "Rember memory test" and it passes, system profiler registers all 4 gigs and shows status as ok, computer acts totally normal? but the apple hardware test fails i guess im lost to why the comp says the ram is ok nd passes most tests just not the AHT test.
    Thanks for your help i hope the new sticks dont show any error
    David
    O and I forgot to mention i called applecare again and requested a different agent to help me and he said Ecc stands for error correcting? so if it came up once and not again it did what it was suppose to do... corrected itself (now that sounds like more b.s to me but i have no idea about computer stuff )
    Message was edited by: priv510

  • Policy Corrupt Memory Error

    Anyone know if this means physical memory or the contents of it, or cache on the hard drive?
    POLICYHANDLERS.DLUPolicy.ErrorInEnforcement{DLU_Hi ghend}
    Additional Information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Severity: Error

    rroncme,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Theatre issue, trying to sent to itheatre and get application memory error

    HELP, I have been trying to finish this project for a week now andn everyday it is something new.  I now have application memory issues.  I followed some threads on board.  I don't understand, need step by step oh can't find my start up cd.
    Any help is appreciated

    Help for Download & Install & Setup & Activation
    -Chat http://www.adobe.com/support/download-install/supportinfo/

  • I recently upgrated to latest Firefox 7.0.1. I am getting Corrupted Content Error trying to load pages on certain web sites. Try again works but not the initial attempt. Is there a fix for this.

    This frequently happens with I select an article in an email from New York and it tries to load that article from http://www.nytimes.com/. It also happens when I select the URL below. I tried Internet Explorer with the URL below and did not experience the problem.

    '''https://support.mozilla.org/questions/997866?esab=a&s=&r=1&as=s'''.<BR>
    This is not a cure but will make it easier if Firefox locks up.

  • HT4623 i get a corrupt file error when trying to update to ios7 anyone else have this issue or know how to fix it?

    Trying to update my iphone and always getting corrupt file error any ideas how to fix it

    If you're doing it over the air, try updating through iTunes.

  • Low memory error message - shut down app

    Last 2 days, I keep getting low memory error message and asking me to close CS Suite application, or it closes on me.

    Details, OS, RAM, free disk space, scrach disk space, etc.

  • Memory error when executing package through SQL Server Agent.

    Hi!!
    I have a problem with a package (SSIS) when run on SQL Server Agent.
    The job is configured
    with the proxy and the account has the
    required privileges. Runs perfectly
    if the job runs manually, but if I let it
    run on schedule I get a memory error.
    Also if I run the
    package through DTExec.exe or VS2008,
    everything runs smoothly.
    I am using SQL2008R2.
    If someone has something similar happened
    and have found how to fix it please i need
    to know how.
    Thank you.

    This is most likely your issue:
    http://support.microsoft.com/kb/824422

  • Memory error after C042 errors on users database

    Hi,
    We recently have memory error messages on the POA and on the Client.
    The error seemed to follow several C042 errors:
    The database function 53 reported error [C042] on user4mn.db
    Error: Memory error. Memory function failure [8101] User:
    I cannot find any process that is accessing the user database at that time (GWcheck, Backup)
    The user also gets a memory error and has to restart the client.
    any ideas?

    On 9/7/2011 2:16 AM, pdjongh wrote:
    >
    > Hi,
    >
    > We recently have memory error messages on the POA and on the Client.
    > The error seemed to follow several C042 errors:
    > -The database function 53 reported error [C042] on user4mn.db
    > Error: Memory error. Memory function failure [8101] User:-
    >
    > I cannot find any process that is accessing the user database at that
    > time (GWcheck, Backup)
    > The user also gets a memory error and has to restart the client.
    >
    > any ideas?
    >
    >
    Have you run a full contents and structure check on the user?

  • I am having the memory error -12 when try use GetCtrlBitmap from a canvas

    I am using a canvas that is 759w x 15000h to draw some data, but when try to save that bitmap to a file, some times all is ok, but other i get the memory error -12. Always I´m discarding the id bitmap objet. What is happening, I not find any solution to this, any suggestion please will be welcome to help me in this application. (any leak of memory, my application in a while slow)
    some of code:
       error=GetCtrlBitmap (idPanelGrafHijo, GRAFICAS_CANVAS, 0, &idImage);
       if(error==0)
          SaveBitmapToJPEGFile (idImage, NombreArchivoGraficoLocal, 0, 80);
          DiscardBitmap (idImage);    
       else
        MessagePopup ("", "Error de memoria, no se guardo el archivo");

    Hola Alberto,
    Una disculpa por el retraso en la respuesta, de acuerdo al fragmento de código que nos proporcionas creo que no es posible percibir el problema, te voy a pedir que nos mandes tu proyecto para poder analizar que es lo que sucede, también sería de bastante ayuda que nos proporcionaras mas información, por ejemplo, ¿has probado este programa en otra computadora?¿Con un ejmplo sobre canvas obtienes el mismo resultado?
    Por ultimo te pido que nos comentes si estas programando en CVI, Visual C con Measurement Studio, etc. Recuerda que entre más información nos proporciones es más fácil ayudarte.
    Saludos,
    Trujillo
    NI
    Mensaje editado por ltrujill

Maybe you are looking for

  • I tunes has deleted all the songs from my HDD literally as I watched??!!

    HELP!!!!!!!!!!!! I Thought my PC was protected from this kind of invasion?????? All my music/videos and Purchases have literally dissapeared from itunes folder and hard drive. It was there half an hour ago and all that happened is: I forgot my passwo

  • How do i change my default browser from yahoo to safari ?

    how do i change my default browser from yahoo to safari ?

  • 865PE Neo2-PS sound problems

    Hi,all. I just got a 865PE Neo2-PS board last week,but found some problems with the sound.When i was running some games(e.g ut2004,nfs) for some while,the sound would just stop.And i got back to desktop,all the media files could not be played either.

  • Is there a way to generate air apps with hidden or "insided" swf?

    The swf file is very very easy to be decompiled after installed... Why adobe air doesn't include swf into the executable file? I have to protect it.

  • Reg: XLF file

    Hi all, Neeed help on one my scenario in my work.Can we have .xlf file like below to handle german, french, italy and danish. I am having Single RTF file which is in en-GB format. want to translate this RTF layout to all 4 language. Please guide me.