LV RTE cannot open project files that have .lvlib references in Dependencies

I'm writing a LabVIEW DLL to inspect LabVIEW project files, and I've noticed that if a project has a .lvlib reference in its Dependencies, then the Run-Time Engine contradicts itself about whether or not it can find the project file:
Project.Open returns error 7 (file not found)
Project.GetFileLVVersion is successful
Here are snippets from my G and C code that exercise this behavior:
int openStatus = StatusSuccess;
char* projectVersion = createStringWithLength(VersionStringLength);
printf("Analyzing %s\n", pathString);
OpenProject(pathString, &openStatus, projectVersion, VersionStringLength);
printf(" Project written in LabVIEW %s\n", projectVersion);
if (openStatus == StatusSuccess)
printf(" Opened project file.\n");
else
printf("Error: Could not find project file, or file was not a project file (error code %i).\n", openStatus);
However, when running in the development environment, both methods succeed.
Is this a bug, and if so, is it fixed in LabVIEW 2014?
Here is how you can reproduce it:
Prerequisites:
LabVIEW 2013 SP1 32-bit
ConEmu for a good console -- https://code.google.com/p/conemu-maximus5/wiki/Downloads
minGW for compiling a program to use the LabVIEW DLL -- http://sourceforge.net/projects/mingw/files
.lvlib reference in Dependencies breaks Project.Open in LV RTE
Unzip the attachment into a temporary directory (eg c:\xtra\temp)
Open "OpenProject.lvproj" in LabVIEW.
Build "Open Project Library".
Using ConEmu with a bash prompt, navigate to the temporary directory.
Type make
$ make
patching file `builds/platdefines.h'
gcc -std=c99 -g OpenProject.c -o OpenProject.exe -lOpenProject -Lbuilds
6. Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
$ OpenProject 'c:\xtra\temp\OpenProject.lvproj'
Analyzing c:\xtra\temp\OpenProject.lvproj
Project written in LabVIEW 13.0
Opened project file.
 7.  Notice that both invoke nodes execute correctly.
 8.  Type OpenProject 'c:\xtra\temp\OpenProjectWithLvlibDep.lvproj'
$ OpenProject 'c:\xtra\temp\OpenProjectWithLvlibDep.lvproj'
Analyzing c:\xtra\temp\OpenProjectWithLvlibDep.lvproj
Project written in LabVIEW 13.0
Error: Could not find project file, or file was not a project file (error code 7).
 9.   Notice that the version node succeeded while the open one failed.
 10. Type diff OpenProject.lvproj OpenProjectWithLvlibDep.lvproj
$ diff -u OpenProject.lvproj OpenProjectWithLvlibDep.lvproj
--- OpenProject.lvproj Tue Nov 4 11:28:28 2014
+++ OpenProjectWithLvlibDep.lvproj Tue Nov 4 11:32:37 2014
@@ -13,7 +13,11 @@
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="OpenProject.vi" Type="VI" URL="../OpenProject.vi"/>
- <Item Name="Dependencies" Type="Dependencies"/>
+ <Item Name="Dependencies" Type="Dependencies">
+ <Item Name="vi.lib" Type="Folder">
+ <Item Name="NI_MABase.lvlib" Type="Library" URL="/&lt;vilib&gt;/measure/NI_MABase.lvlib"/>
+ </Item>
+ </Item>
<Item Name="Build Specifications" Type="Build">
<Item Name="Open Project Library" Type="DLL">
<Property Name="App_copyErrors" Type="Bool">true</Property>
Here is another way to trigger this behavior, which also shows that LabVIEW only sometimes tidies the Dependencies item:
Open "OpenProject.lvproj" in LabVIEW.
Add a new VI to the project and place the "Application Directory" file path constant its block diagram.
Select "File » Save All (this Project)" and use the default name for the new VI.
Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
Notice there is an error again, as is expected.
Remove the "Application Directory" file path constant.
Select "File » Save All (this Project)"
Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
Notice the problem is gone, as is expected.
Re-add the "Application Directory" file path constant to the block diagram.
Select "File » Save All (this Project)"
Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
Notice there is no problem, which is surprising as there should be an error since the Dependencies item hasn't been tidied.
Close the new VI and remove it from the project.
Select "File » Save All (this Project)"
Open "OpenProject.lvproj" in a text editor.
Notice the Dependencies item has been tidied.
Re-add the VI back to the project.
Select "File » Save All (this Project)"
Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
Notice there is an error again, as is expected.
Solved!
Go to Solution.
Attachments:
LVRTE_OpenProject.zip ‏10 KB

NInjaneer_wow wrote:
The same behavior occurs in LabVIEW RTE: a new project with an Application Directory constant in a blank vi will return error 7 - file not found, but still return the correct version of LabVIEW in which the project was created. 
I've been experimenting with workarounds for this behavior, and I found one.
When I provide the LabVIEW path for libdir in my executable's ini file, the run-time is able to load and inspect the project file.
libdir="C:\Program Files\National Instruments\LabVIEW 2013"
While it's expected that a stand-alone executable may be placed on a system that doesn't have the LabVIEW IDE, it's still surprising to me that the Run-Time Engine cannot find LabVIEW's standard library without some explicit guidance. What other considerations contribute to that behavior?
References:
LabVIEW configuration file/Paths -- http://labviewwiki.org/LabVIEW_configuration_file/Paths

Similar Messages

  • Cannot open project file with write access...

    I have seen that this problem has been reported before but have yet to find a solution.
    I have my project file in an external hard drive.  When I plug the hard drive to another computer and want to save it I get this message:
    "Cannot open project file with write access.  The file may be locked or you don't have permission to write to this location.  Select Save As..."
    I don't want to Save As because other projects make reference to this file and also my Encore file will be messed up.
    FYI both computers use Windows 7.
    Any solutions?

    Right click on the folder in Question and select properties. Then select the security tab. Make sure you add everyone to the user list. You do that by selecting edit and then add. Type in everyone in the object section and hit ok. Then select the everyone user and checkmark the Full control. Hit Apply and it will adjust the permissions for the folder and subfolders and files.
    Eric
    ADK

  • I cannot open pdf files that are emailed to me. Can anyone help?

    I cannot open pdf files that are emailed to me. Can anyone help? I have adobe reader XI.

    What operating system?  Email client?  What exactly means "cannot"?

  • Cannot open the file I have downloaded to get a new version of Photoshop

    I have had a new computer, and am trying to download the Photoshop Elements 10 again, but I cannot open the file that I get after 20 minutes of downloading from here: Download Photoshop Elements products | 13, 12, 11, 10
    In fact, I do have the installation CD as well, but when the set up gets just past the typing of the serial number, nothing more happens. The progress bar appears, but without any "bar" filling up, and the CD just runs and runs for ever.
    I have tried for three hours now ...

    Hi spe,
    Check to see that you are opening it in Numbers 3. Numbers 2.x is still on your computer. Wayne has a nice tip here:
    Need newer version of Numbers to open file
    Check it out.
    quinn

  • SAFARI 6.1.3 update to Reader 11.0.07 - cannot open pdf files that are presently on my computer. Previous version had no problem. Any ideas?

    SAFARI 6.1.3 update to Reader 11.0.07 … cannot open pdf files that are presently on my computer. Previous version had no problem. Any ideas? (Here is the message: Adobe Reader could not open 'Digital_Holiday_Cookbook.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

    Thank you Pat!!!
    Craig Ekonomos
    [email address removed]

  • Error: Cannot open project file

    Does that error message mean I am trying to open a project file that was created with a version of FCP that is later than what I operate with?
    Also, where did the FCP FAQ section go?
    PowerMac G4 desky 867MHz 1GB RAM   Mac OS X (10.2.x)   FCP 3.0.4

    Are you trying to open a project created by a later version? (using FCP 4.5 to open a project created in FCP 5 for example)
    If so, it can't ge done. The best you can do is export an XML of the cut (only the cut) that the previous version can then import.
    #27 Getting a FCP 5 project to open in FCP 4.5
    Shane's Stock Answer #27: How do I export my FCP 5 project so that someone can work with it in FCP 4.5?
    Final Cut Pro 5 projects are not backwards compatible. What that means is that a project created in FCP 5 cannot be opened by previous versions. The previous version cannot recognize the formatting and code of the newer version. You can go from FCP 4.5 5o 5, but it will reformat your project file, so if you want to have a 4.5 version best to duplicate it and convert the duplicate.
    You can, however, export the sequence from FCP 5 so that it will open in FCP 4.5 if you follow these steps:
    1) Select all in the Browser
    2) Choose File>Export>XML
    3) Make sure you choose XML version 1 in the following dialog box
    4) Launch FCP4.5 and create a new project
    5) With that project's Browser open and active, import the XML
    For an in-depth explaination, read this:
    http://www.lafcpug.org/Tutorials/basicfcp5_to4.html
    Shane

  • Cannot open project file in Project 2010

    Hi,
    I have a project created in Project 2010. I can save it without any problems. But some saves are broken and I cannot open them again. When I open saved project an error message is displayed:
    There was a problem sending the command to the program and Project freezes. Project 2010 itself starts without any problems. What's strange I can open this file in viewers like MOOS Project Viewer 2.0 but not in Project.
    Any tips highly
    appreciated.
    Lukasz Chomin

    Hi Lukasz,
    Welcome to this Microsoft Project newsgroup :-)
    It sound as though that project has corruption.  If you can open it at all, follow the advice given below.  If you can’t open it at all, it seems like it’s lost – you do have a backup don’t you?
    If you can open it in another program, try copy/paste the data back into a new project.
    If you suspect a corrupt file, you could try the suggestions in FAQ Item: 43. Handling project file corruption and/or bloat.
    FAQs, companion products and other useful Project information can be seen at this web address:
    http://project.mvps.org/faqs.htm
    Hope this helps - please let us know how you get on :-)
    Mike Glen
    Project MVP
    See http://tinyurl.com/2xbhc for my free  Project Tutorials

  • Cannot open Project files from previous FCPX versions

    Hello,
    I'm currently on 10.0.8, and have not upgraded to 10.1.1.  Here is my issue:
    A documentary project I've been working on since 10.0.1 is not showing up in 10.0.8, and I'm wondering how to "manually" update the Project.  I upgraded FCPX versions a few times while working on this Project (I think all the way up to 10.0.4), but then I stopped as I noticed it was negatively affecting parts of my project and making the application run slow (and Apple recommends you don't update versions while in the middle of a project).  I finished that project, but now fast forward and I'm in 10.0.8 and I need to revisit that Project to make a few changes, but FCPX won't even recognize it.  It successfully updated and recognizes the Events I used for this particular Project, but not the Project itself. 
    Any help/suggestions would be great.
    Thank you!

    Thanks Russ.  After all this time, I actually solved the problem myself.  I forgot that back 6 months ago, I renamed my Project file, from the default "CurrentVersion".  I just came across another post that said you're not supposed to do that, so I changed my Project file back to "CurrentVersion" and now FCPX recognizes it.  After all that toil, the answer was just too simple!!
    Thanks.

  • How can I open picture files that have been downloaded from my I Phone 4 to my Windows 8 laptop and share them?

    How can I open apple picture files that I downloaded from my IPhone 4 to my windows 8.1 laptop?

    ronylouis wrote:
    i deleted notes fom my old iphone and surprised to see that they have been deleted from my new phone ..how can i get them back ...i dont have any backup??
    Why would you be surprised?  You were syncing your Notes with iCloud or a Mail Account.  Synchronization means when you make a change on one device, it affects all other devices that are synched for the same purpose.  Like when you delete an email (usually) it also disappears from your other devices as well.

  • Can't open PDF files that have been downloaded

    I have downloaded a few PDF files from a variety of websites, but I am unable to get them opened so that I can print them. 
    What's the catch?

    hi
    Have you got adobe reader installed on your pc? you  need it to open PDF files....heres a link to download it
    http://get.adobe.com/uk/reader/       be sure to unclick the free mcafee security scan.....unless you want it of course

  • I cannot open .msg files I have saved to my external hard drive

    I have saved a number of different .msg files to my external hard drive that I now need to gain access too on my Mac. I am sure there is a very simple answer to opening these files. Help would be greatly appreciated.
    Thanks

    Rename your Preview Cache. It is in the same location and has the same name as your Lightroom Catalog.  Rename it to catalogname.lrpreviewold and when Lightroom launches, it will rebuild the Preview Cache. 
    Does this allow you to open your catalog?

  • Cannot open .project file

    b I have a Turnkey installation of ES 801. It is running in a VM.
    When I login to Workbench, the eclipse log records this exception (only the first few lines are listed, followed by the 'Caused by' line is listed below):
    !ENTRY com.adobe.ide.singlesignon 4 4 2007-11-08 05:45:56.281
    !MESSAGE login notification failed
    !STACK 0
    java.lang.IllegalStateException
    at com.adobe.ide.singlesignon.IDESession.getProject(Unknown Source)
    at com.adobe.ide.singlesignon.IDESession.getProject(Unknown Source)
    Caused by: org.eclipse.core.internal.resources.ResourceException: The project description file (.project) for es801-trnkey-a 87.128 is missing. This file contains important information about the project. The project will not function properly until this file is restored.
    b I also get this message when I attempt to access the repository. This is when I am browsing for a Tempplate URL when a new xfaForm process variable is being specified. Again only the first few lines of trace and the 'Caused by' line are listed.
    !ENTRY com.adobe.workflow.editor 4 4 2007-11-08 06:14:10.531
    !MESSAGE Failed to open repository picker dialog
    !STACK 0
    java.lang.IllegalStateException
    Caused by: org.eclipse.core.internal.resources.ResourceException: The project description file (.project) for es801-trnkey-a 87.128 is missing. This file contains important information about the project. The project will not function properly until this file is restored.

    Thank you Jasmin. The deletion of the workbench connection config and re-creation fixed the problem.
    Are you aware of WorkBench documentation that is better then Creating First LiveCycle ES Application or WorkBench ES help?
    I would like details relating to properties on the various actions one puts on the process design pallet for instance.
    Thanks again!
    Peter Bourke

  • Premiere Elements 4 - Cannot open project file with write access

    I have most of my video files on a network share drive.
    However, I am unable to create the "native" files on the share (and also cannot save to them.
    I must generate the new files (.prel) on a local drive (and therefore save new renditions to this location).
    Is this a problem with Premiere Elements 4.0?
    Should it just be run locally or can it be used on a network share?
    Thanks

    I do not believe you can use Premiere Elements on a network, Wayne. Especially if network is something other than an XP network.

  • Why cant i open pdf files that have been emailed to me through my comcast email account

    why does it tell me there is an error in the installation of my acrobat reader xl .i can not uninstall it nor can i install  it without it telling me that it is already installed .

    Hi there,
    Are you on Mac OS or Windows? Have you tried repairing the installation? Please see this document for instructions on repairing Acrobat: Can't open PDF
    Best,
    Sara

  • Photoshop files in FCE - Cannot Open Project

    I have a series of Photoshop files (RGB with about 10 layers a piece).
    I am able to import a file into FCE HD and move the layers around as tracks - everything works great.
    I save the file, and close. When I try to re-open the file, I get the dreaded "Cannot open project file".
    I have tried this with an external drive and saving to the desktop. I have also tried importing normal pictures - no problem. It's when I import layers. I have been able to isolate the problem to layered Photoshop files.
    Any ideas?
    thanks.

    Any PS file that has transparency that is imported
    into a PAL project will corrupt the file, so
    that you cannot open it again. Sorry.
    See this (9th post down) which showed that any file created in Photoshop with its type as ".psd", whether with or without transparency, will give this fault. However, a file created in Photoshop with .tif will be safe even if it has transparency.
    G5/2.0 GHz   Mac OS X (10.3.9)   1 GB RAM, 150 GB HD, Sony DCR-HC96 mini DV, FCE HD 3.0 DVD SP 3

Maybe you are looking for

  • Problem with ioinning multiple Threads

    Hi, I have multiple sub Threads T1, T2, T3.... started by main Thread T. After starting each sub Thread, I stored them in the HashMap. When finish starting all Threads, I want to join each sub Thread to my main Thread. The problem is when T3 join wit

  • Cancelled pre-order and walked into AT&T and got phone

    Today, I cancelled my pre-order for my iPhone 4s 64gb AT&T black model.  I was then able to walk into an AT&T store and pick up the exact same model (5 days after the original shipment). The number one reason is because I do believe there is a lack o

  • Error when clicking on template properties

    When I go to some pages of the same template style and click on template properties I get the following error: "The template that you're trying to apply does not allow changes outside the <html> tag. This document contains code outside the <html> tag

  • Logging with Web Start

    My log4j.properties files need to be on the classpath, and I have this working with the properties files in my deployed jar. But I want to have the log4j.properties file out side the jar and on the web server in the same directory as the jar so that

  • 2008-07-29 16:23:42Z - SBO Error #-111: Failed to Connect to SBOCommon

    Hey guys, I'm getting this error message when I try to connect to the company SAP database on another server.  When I refresh the list of databases, I can see all of the B1 databases that are on that server, but it continues to give me this error mes