From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-07-2018 03:38 AM
Hi all,
since years I use .net callbacks in Labview and till now I use the GC.Collect function to free the Callback VIs.
Now I use Labview 2018 and it seems that this doesn't work anymore ...
Does anyone else have this experience?
It also seems that in LV2018 the .net is changed more, because if use the Maun->View-> net assemblies in memory, I get a corrupted labview error ...
Thanks
Hans
Solved! Go to Solution.
09-12-2018 08:31 PM
09-12-2018 11:43 PM
Hi, thanks for your reply .
The problem is that the workaround GC. Collect doesn't seem to work anymore in Labview 2018.
Best regards
Hans
09-13-2018 10:23 AM
Hans,
You're not alone. You're seeing a couple of issues we've noticed specifically in LabVIEW 2018.
The error message you're seeing is being tracked by CAR 707767.
The GC.Collect() method not releasing the reference is being tracked by CAR 712176.
Our dev team is aware of both and working to resolve those as soon as we're able. In the short term, we don't have a workaround for the error in 2018. But, if you have an older version of LabVIEW installed, you can setup your .NET functionality and then open in 2018 without any known problems. For the GC.Collect(), the only suggestion I have is to consider placing the callback into a library. Libraries are easier to unload without closing out of LabVIEW. But, that's not really that much more friendly than your current state.
Are these actively holding you back? Or, are you wanting to report them as issues to make sure there's nothing quirky with your installation?
09-17-2018 06:47 AM
Hi, thanks for the info.
So I'll hope for a solution in the future ..
Meanwhile I develope in LV2017 and copy it to 2018 folder ... nice for Subversion 🙂
Hans
10-11-2018 12:48 AM
Hi, it seems that this issue is fixed now in Labview 2018 f2 patch, BUT:
I can't download it anywhere ...
This: www.ni.com/product-documentation/54795/en says "This patch can be found by the NI Service Update tool", but it can't.
There is also a download link on this page, but it doesn't exist...
Hans
10-16-2018 03:27 PM
Sorry about the early documentation. You're right, though. This problem is fixed in the 2018 f2 patch and it's now released. All of the links on the patch details page you listed should now be live and the patch can be downloaded.
10-17-2018 12:26 AM
Hi, thanks for the info, but when I try the f2 patch windows links on the bottom side of
http://www.ni.com/product-documentation/54795/de/
I still get the page error:
http://www.ni.com/download/null/7802/null/
And my NI Update Service doesn't find it ...
Hans
10-17-2018 04:19 AM
Hi, now it's working!
My problem was that I use Firefox ....
In Chrome it works now.
Thanks
Hans
11-12-2018 04:05 PM
For anyone that may be watching this thread, this fix is also included in LabVIEW 2018 SP1. If you'd prefer upgrade to SP1 rather than patch, this is available to download at www.ni.com/download now.