LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI in PPL only executable when debugging is enabled

I have a large project with several plugins (sorry, I can't post code). Most plugins work with dependent common PPLs and most plugins work as a PPL. Some however, don't. But when I enable debugging to see what's wrong, they DO work!? How is this possible?

 

I get "This VI in a Packed Project Library cannot recompile to match an external dependency" as an error when I try to launch the broken VI. Like I said, this error doesn't appear when debugging is enabled, so I don't know which external dependency I have to fix... I have added the relevant PPLs in the "Source File Settings" and they appear correctly in the Preview tab.

 

The other strange thing is that the sizes of all culprit PPLs are larger than the working PPLs. 3-5MB instead of 1-2MB, while the size of the plugin itself (e.g. number of subVIs etc.) is not much bigger/smaller than other plugins. Here are the "Additional Exclusions" settings that are the same for all plugins.

Basjong53_0-1680791327941.png

The exe of all plugins are also working well, both with debugging enabled and disabled.

 

What changes when debugging is enabled?

0 Kudos
Message 1 of 3
(710 Views)

What changes? Mostly the diagram is not removed and some extra linker info is left in. Are you using any .vim’s in those PPLs? Vim’s and PPLs don’t always go well together! Sometimes it works, sometimes it simply doesn’t, or only with diagrams left intact (debug enabled)!

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(666 Views)

I do use some .vims, but I keep it at a minimum. I have found that enabling "Disconnect Type Definitions" in the build specifications fixed the issue. Though it doesn't explained why it happened in the first place, and only in some PPLs...

 

I can continue for now.

 

But since were here talking about PPLs, I have another strange behaviout. Some plugins don't work with the error that the file is not found. Even when I load them into an empty project, the PPL isn't being loaded for some reason.

Basjong53_2-1681914520729.png

The dependencies are empty, with just 2 other PPLs that are the same for all other PPLs, but they are in "Items in Memory" while with other plugins, they appear in Dependencies, where they should be. When I load a working PPL, all dll are also loaded. I don't know what causes this difference.

 

 

0 Kudos
Message 3 of 3
(618 Views)