Article View: borland.public.csharpbuilder.language.csharp
Article #49Re: Custom Delegation
From: Marc Rohloff TeamB
Date: Mon, 29 May 2006 13:28
Date: Mon, 29 May 2006 13:28
17 lines
1796 bytes
1796 bytes
On Mon, 29 May 2006 09:20:28 +0200, Andre wrote: > Now, is this a cleanup routine when using -= or does it just add additional > functionality to the event contruction/destruction? > Is this type of coding neccesary? good practice or mandatory for event > cleanup? > As far as I know, the object owning the event gets disposed by GC > automaticlly. > Should I call the -= manouver when the object gets disposed? What Joanna said is true but since you showed a custom implementation almost anything could happen. The best practice is probably to always remove the events. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<15xbx0js9z62p.dlg@dlg.marcrohloff.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<447aa0bd@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,bb4758d9cad65d98 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: Custom Delegation Newsgroups: borland.public.csharpbuilder.language.csharp User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <447aa0bd@newsgroups.borland.com> Date: Mon, 29 May 2006 09:28:03 -0400 Message-ID: <15xbx0js9z62p.dlg@dlg.marcrohloff.com> X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR X-Antivirus: avast! (VPS 0621-4, 05/26/2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 65.31.1.121 X-Trace: newsgroups.borland.com 1148909276 65.31.1.121 (29 May 2006 06:27:56 -0700) Lines: 17 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail