Jump to content

Application builder name collision detection is not case insensitive


Jim Kring

Recommended Posts

[status: Reported to NI]

Steps to Reproduce

1) Create a project

2) Create two classes, Class1 and Class2 (these should be siblings with LabVIEW object as their parent)

3) In Class1, create a method named "MyMethod.vi" (observe case sensitivilty -- only the M's should be uppercase)

4) In Class2, create a method named "mymethod.vi" (observe case sensitivilty -- all letters should be lowercase)

5) Create a build rule for an EXE that has both "Class1.lvclass:MyMethod.vi" and "Class2.lvclass:mymethod.vi" as startup (top-level) VIs.

6) Build the EXE

Observed Results

The build will fail with Error 1357: "A LabVIEW file from that path already exists in memory, or exists within a project library already in memory".

Expected Results

No errors

Analysis

I believe that the algorithm that LabVIEW uses to detect and avoid VI name collisions, prior to the build, is case sensitive and not catching the fact that "MyMethod.vi" and "mymethod.vi" cannot occupy the same location on disk (on MS Windows, at least).

Workaround

Ensure that all methods with the same name have the same case.

Example Project

Download File:post-17-1193708527.zip

Link to comment

QUOTE(Jim Kring @ Oct 29 2007, 08:42 PM)

I believe that the algorithm that LabVIEW uses to detect and avoid VI name collisions, prior to the build, is case sensitive and not catching the fact that "MyMethod.vi" and "mymethod.vi" cannot occupy the same location on disk (on MS Windows, at least).

This is also true for two regular VIs, at least in my 8.20 version, application builder and LVOOP notwithstanding. (I'm not sure if that's what you meant in this sentence or not.) If MYVI.vi is open, you can't open myvi.vi.

Link to comment

QUOTE(Jim Kring @ Oct 30 2007, 04:42 PM)

Actually, that's not true, in this case. Since these VIs are members of seperate classes/libraries, their names are scoped/prefixed with the class name. So, it's perfectly fine to have them in memory together. They simply cannot be stored in the same folder (or inside the same LLB/EXE) on disk. This is the heart of the problem. LabVIEW starts the build process, but fails to detect that there will be a name collision on disk, during the build. The build progresses and then fails.

Oh, that's right, I forgot about class/library namespace. I'll just go sit in a corner and be quiet now...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.