From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PPL with dll dependency gives gives load warning

I am using the Exaprom PDF library in my project and since it's quite big, I've made it into a PPL. This works well, but I always get a "Dependancy loaded from new path" warning whenever I load a project containing the PPL. It seems that the DLL is linked in some places to the original path instead of the new path where the PPL is located.

 

How can I make sure that all links to the DLL are to the new location? I have tried it with "exclude dependent DLLs" on and off, with no difference. Does anyone use this libray as a PPL without this problem?

 

 

0 Kudos
Message 1 of 3
(588 Views)

What I do is have the DLL in the builds directory.  Then build the PPL also into the builds directory with the "exclude dependent libraries" checked.  The important thing here is that the PPL must have dependencies retain relative paths.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(568 Views)

When I tried that I get the error:


Cannot build the application because the following source files are in the destination directory. You must build the application to a different directory from the source files.


I have both all exclude options on:

Basjong53_0-1676466168337.png

The strange thing is that when I build the PPL like before (with the dependency warning) and add the PPL to a project, itextsharp.dll (the culprit here) appears 2 times in the dependencies list (the original in the source and the one in the build folder).

Basjong53_1-1676468719642.png

 

The one in the source folder shouldn't be there. It is being called by some classes in the library (there are some .net refnum in the their private data). How can I fix this?

0 Kudos
Message 3 of 3
(554 Views)