Hello, I faced with huge memory leaks when using subscriptions in .net API.
I we been tested local and remote subscriptions, using many OaDpValueSubscription and from 1 to 10 OaDpQuerySubscription, for about 5000 DP,
Also I tested one OaDpQuerySubscription for 500 DP (each DP changes once per second.)
Can anyone suggest any objects that I should dispose or something?
WinCC OA 3.16 P012
.net API memory leaks
- clicht
- Posts:24
- Joined: Tue Aug 03, 2010 8:11 am
Re: .net API memory leaks
Without knowing details I think it is a bug in the wrapper of CharString per reference, which we recently found.
Internally for each cb and DP the dpid is converted into a string representation.
Therefore internally a method (Manager::getId()) with a CharString out (per reference) parameter is used.
We have a bug in the conversion of the managed string into native CharString and back again to managed string.
I think fix will be provided with one of the next patches.
For questions to your consultend or support contact, when it will be delivered you can use #64271 as reference.
Internally for each cb and DP the dpid is converted into a string representation.
Therefore internally a method (Manager::getId()) with a CharString out (per reference) parameter is used.
We have a bug in the conversion of the managed string into native CharString and back again to managed string.
I think fix will be provided with one of the next patches.
For questions to your consultend or support contact, when it will be delivered you can use #64271 as reference.
- DKuchev@croc.ru
- Posts:10
- Joined: Tue Feb 12, 2019 7:19 pm
Re: .net API memory leaks
Ok, thank you!
Waiting for a new patch...
Waiting for a new patch...
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: .net API memory leaks
The bugfix for #64271 is included in the upcoming patch for WinCC OA 3.16.
The patch will be available in the WinCC OA Portal soon. We are just working on the finalization of the patch.
Best Regards
Leopold Knipp
Senior Support Specialist
The patch will be available in the WinCC OA Portal soon. We are just working on the finalization of the patch.
Best Regards
Leopold Knipp
Senior Support Specialist