[Ns-bugs] [Bug 1086] sanity check for not calling Object::Dispose () twice

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Mar 30 23:46:32 PDT 2011


http://www.nsnam.org/bugzilla/show_bug.cgi?id=1086

Mathieu Lacage <mathieu.lacage at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Mathieu Lacage <mathieu.lacage at gmail.com> 2011-03-31 02:46:32 EDT ---
No, this is not needed:
1) it is already implemented. Did you not notice the m_disposed member variable
?
2) your implementation is not correct.

To summarize, you can already call Dispose many times on the same object or
different objects aggregated together and DoDispose will be called only once
for each aggregated object.

-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list