On Sat, 2013-12-14 at 15:25 +0800, Nor Jaidi Tuah wrote:
> Dear all,
>
> I had a memory leak in my app that I traced to
> a delegate variable. Something like this:
>
>class X {
> delegate void Delegate ();
> Delegate d;
>
> public void xx () {
> d = () => { do_stuf
Dear all,
I had a memory leak in my app that I traced to
a delegate variable. Something like this:
class X {
delegate void Delegate ();
Delegate d;
public void xx () {
d = () => { do_stuff ();};
}
}
Given the above, the following will leak memory:
{