LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build error with Advapi32.dll file

Hi all,

 

I am trying to build an exe with an application that I have been developing and running in L/V with no issues for quite a while.  I recieve an error when trying to build that inidcates that there was an error copying the source file Advapi32.dll.  The details are as follows:

 

Error 1 occurred at AB_Destination.lvclass:Copy_File.vi -> AB_Source.lvclass:Copy_SourceItem.vi -> AB_Build.lvclass:Copy_Files.vi -> AB_Application.lvclass:Copy_Files.vi -> AB_Build.lvclass:Build.vi -> AB_EXE.lvclass:Build.vi -> AB_Engine_Build.vi -> AB_Build_Invoke.vi -> AB_Build_Invoke.vi.ProxyCaller

 

Not sure what this file is only that is has always shown as a dependency in my project. Checking the file, it shows no callers so I am wondering if I can just delete it ?

 

I'm trying to build in LV 8.6.   I found a few older posts about this particular file but none of them really addressed my issue.

 

Any help is appreciated.

 

Doug

 

 

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
0 Kudos
Message 1 of 4
(2,893 Views)
Hi Doug,
I have seen this issue beefore and I would first try mass compiling the VIs within your project to ensure there aren't any unresolved conflicts.
If this does not resolve the issue, make sure you add the VI with the DLL as a dependency and LLB as an always included file.

 

Jordan G

0 Kudos
Message 2 of 4
(2,880 Views)

There were indeed several errors found during the mass compile but mainly bad vi's.  Nothing that mentioned the Advapi32.dll file.   I am going to fix all the other errors however and try again and will report back on success or failure.

 

Thanks

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
0 Kudos
Message 3 of 4
(2,871 Views)

The issue has been resolved though the root problem remains a mystery.

 

I was finally able to sucesfully mass compile the project though this in istself did not resolve the problem. The build would still fail with the same issue surronding the Advapi32.dll file.

 

What finally worked is to remove that file from the project.  It still showed up in the dependencies but would not be included in the built application.  In addition however, I had to remove several other dll files from the project.  The common link is that none of the dll files displayed a location path in the project explorer.  Even ones installed by third party drivers.  Once I removed them from the project proper and they simply showed up in the dependencies, the appliction built sucesfully.

 

Not sure why this is an issue but would like to see some feedback from NI on this to better understand the condition and why it occurs.

 

Thanks for the assistance regardless

 

Doug

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
0 Kudos
Message 4 of 4
(2,858 Views)