12-03-2019 12:05 PM
Hello all.
Tearing my hair out here, (what's left of it). We have some very complex monitoring software written by someone else, many years ago, and now not available. I needed to turn the analysis section of it into a small standalone application so, rightly or wrongly (the latter, I suspect), I did a slash & burn on all the unwanted parts of the code until I was left with just the bit I need.
I have now ended up with a nice little working application, but it has hundreds and hundreds of dependencies, classes and sub vis that are no longer there.
In desperation I cut & pasted the main loop into a new vi and, if I make a new project with the vi in it, the dependencies are still there, despite there being no reference to them!
I'm afraid to say I don't understand why. The new code is tiny and has only one sub vi, no reference to any of the other 400 dependencies. I'm stumped. How to I get rid of the dependencies?
As I say, this is only a part of the application, but the whole thing isn't much bigger. vi is attached.
Thanks for any help.
Andrew
Solved! Go to Solution.
12-03-2019 12:19 PM
Classes and Libraries could be one of your issues. If even 1 VI or control from a library or class is used, then entire library or class is also loaded and will show up as a dependency. This would indicate that it was not written with enough modularity.
12-03-2019 12:23 PM
At least it is narrowed down to the subVI that you didn't include. 😉
12-03-2019 12:45 PM
OK, sorry, I should've said, it doesn't make any difference if that sub vi isn't there.
I have taken it out and posted the new version.
If I now create a new project from this vi, it has over 100 dependencies, despite there being hardly anything in the vi now, no sub vis that I can see.
12-03-2019 12:50 PM
@ASH2020 wrote:
OK, sorry, I should've said, it doesn't make any difference if that sub vi isn't there.
I have taken it out and posted the new version.
If I now create a new project from this vi, it has over 100 dependencies, despite there being hardly anything in the vi now, no sub vis that I can see.
Odd, I see nothing but dependencies on vi.lib as expected.
12-03-2019 01:03 PM - edited 12-03-2019 01:04 PM
This is what I see. Not hundreds of dependencies - just the few vi.lib dependencies that I would expect.
Maybe you should zip and upload your entire project folder so that we can see what's going on.
12-03-2019 01:05 PM
Phew, yes I see what's happened. Version 9 was hanging around in the background somewhere and when I created the project it added V9 and V10. V9 was the one that must've had some references to the class in it.
Sorry about the waste of time. I should be able to add modules in until I find the rogue one. Thanks for the help all.
12-03-2019 01:12 PM
@ASH2020 wrote:
Phew, yes I see what's happened. Version 9 was hanging around in the background somewhere and when I created the project it added V9 and V10. V9 was the one that must've had some references to the class in it.
Sorry about the waste of time. I should be able to add modules in until I find the rogue one. Thanks for the help all.
It's not a waste of time. Not coming here and not finding a solution - now that would have been a waste of time.
12-03-2019 01:14 PM
@billko wrote:
@ASH2020 wrote:
Phew, yes I see what's happened. Version 9 was hanging around in the background somewhere and when I created the project it added V9 and V10. V9 was the one that must've had some references to the class in it.
Sorry about the waste of time. I should be able to add modules in until I find the rogue one. Thanks for the help all.
It's not a waste of time. Not coming here and not finding a solution - now that would have been a waste of time.
I agree with billko.
12-03-2019 02:07 PM
Thanks again crossrulz, Bill and John.
Sometimes it just takes a little discussion and working through to see the light at the end of the tunnel.
Although sometimes, as they say, It's some **bleep** with a torch, bringing you more work! 🤣
Much obliged though, I think I can sort it from here.
Cheers
Andrew