Hello Everyone,
First off I want to be clear that there are people talking about two completely different problems in this thread. Both of them produce an Error 6 but for two entirely different reasons. The build path being too long issue is described in detail from this KnowledgeBase (Error Code 6 Occurred at AB_Source_VI…). The original poster and a few others are describing an intermittent error during build process (Error 6 Occurred at Delete in AB_Engine_Delete_Internal_Files.vi…). I will be responding to the latter.
Thanks to one of our customers I received a project where I could reproduce the Error 6 Occurred at Delete build error. We could only reproduce this on some of our machines, mine being one of them (A fast QuadCore running Windows 7 64-bit). Based on some of our assumptions I used Procmon and some filters to monitor any process that was touching our build directory that could be reserving the files when we tried to lock them. When I did this I found several different processes that were accessing that directory: Windows 7 Search Indexer, NI DataFinder, McAfee Antivirus and another search indexer I installed called Search Everything. Using the process of elimination I narrowed down the cause of this problem to be caused by my Search Everything program. I could only reproduce the problem with it enabled.
This leads us back to what we had suggested in some of the original posts. You need to ensure that you do not have an indexing program or others that are accessing this folder. If you are unsure or don't believe that you are running a program of this sort I would run Process Monitor and filter it to see all activity in the build directory. Try disabling the programs that are also using that folder to see if you can narrow down what is causing the problem. Most indexing programs will allow you to exclude certain directories so you can continue to run these programs without hitting the build error.
We will be adding retry logic into our code to try and avoid this error in the future.
Regards,
Jon S.
National Instruments
LabVIEW NXG Product Owner