Re: Unit testing event handlers



Nope--the garbage collector won't collect it if you haven't unsubscribed.
Ask the Princeton team for the DARPA Grand Challenge:

http://www.codeproject.com/showcase/IfOnlyWedUsedANTSProfiler.asp

A memory leak of this exact type torpedoed their entry in DARPA's $2 million
Grand Challenge. So, yes, you do have to unsubscribe.

But the suggestion about 'finally' is a good one.

David Veeneman
Foresight Systems


.



Relevant Pages

  • Re: memory problem
    ... browsing web forums after 30 mins. Switching to other browsers helps ... to reduce my system load. ... That most likely is a memory leak with the application. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: 2.6.5-rc1-mm1
    ... A memory leak was introduced in the ext3 changes. ... files changed, 8 insertions(+) ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • [PATCH 34/44] Fix a memory leak in ns558.c
    ... Fix a memory leak in ns558.c ... files changed, 1 insertion(+) ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Memory Leak
    ... memory leak in your programs? ... Im running FreeBSD 4.9 so just looking for something try to help me track it ... need to know a good memory tracing program or something of the sorts. ... To unsubscribe, ...
    (freebsd-hackers)