[Mono-list] Release of NS* objects
flohei
flo at rootof.net
Wed Sep 1 08:46:31 EDT 2010
Hi there,
I'm having some trouble with a memory leak in a basic testing application.
I've built the test app as described in Michael Hutchinson's very helpful
http://mjhutchinson.com/journal/2010/06/09/monomac_in_monodevelop blogpost .
I modified it to create a NSString object first and set the NSTextField's
property to this string. Every time I hit the button I do that 20'000 times
which increases the app's memory usage by ~6 MB.
Since I would release the NSString in Objective-C after using it I wonder if
I have to release it here, too. Or is this behavior implemented in the
frameworks classes?
Thanks
–f
--
View this message in context: http://mono.1490590.n4.nabble.com/Release-of-NS-objects-tp2403072p2403072.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list