Click here to Skip to main content
15,881,803 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Do I need to release .NET 3.5 SP1 to all users? Pin
Simon P Stevens18-Mar-09 6:51
Simon P Stevens18-Mar-09 6:51 
QuestionSiteLock template on C# Pin
budarin17-Mar-09 11:57
budarin17-Mar-09 11:57 
QuestionIDisposable, Inheritance and Event Handlers Pin
Alex Feature17-Mar-09 9:36
Alex Feature17-Mar-09 9:36 
AnswerRe: IDisposable, Inheritance and Event Handlers Pin
Natza Mitzi17-Mar-09 10:02
Natza Mitzi17-Mar-09 10:02 
GeneralRe: IDisposable, Inheritance and Event Handlers Pin
Alex Feature17-Mar-09 21:07
Alex Feature17-Mar-09 21:07 
GeneralRe: IDisposable, Inheritance and Event Handlers Pin
Alex Feature18-Mar-09 2:07
Alex Feature18-Mar-09 2:07 
GeneralRe: IDisposable, Inheritance and Event Handlers Pin
Natza Mitzi18-Mar-09 3:30
Natza Mitzi18-Mar-09 3:30 
AnswerRe: IDisposable, Inheritance and Event Handlers Pin
S. Senthil Kumar19-Mar-09 3:53
S. Senthil Kumar19-Mar-09 3:53 
Alex Feature wrote:
Each ObjectBx overloads Dispose method and uses it to Remove EventHandlers.


How do you overload Dispose? I'm guessing you have public non-virtual Dispose in your base class and then methods with the same signature in all the derived classes?

If that's the case, you need to make the method that does the disposal virtual, and override it in the derived classes. That way, the Dispose calls will go the actual (runtime) types - in your case, ObjectBxs.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Home Page |My Blog | My Articles | My Flickr | WinMacro

QuestionProblem in creating website with CMS Pin
itsravie17-Mar-09 5:37
itsravie17-Mar-09 5:37 
AnswerPick a forum and stick with it. Pin
Pete O'Hanlon17-Mar-09 6:07
mvePete O'Hanlon17-Mar-09 6:07 
GeneralRe: Pick a forum and stick with it. Pin
led mike17-Mar-09 8:06
led mike17-Mar-09 8:06 
AnswerRe: Problem in creating website with CMS Pin
led mike17-Mar-09 8:08
led mike17-Mar-09 8:08 
QuestionISSue with VS 2005 Pin
p_196016-Mar-09 22:38
p_196016-Mar-09 22:38 
Questioninvisible watermark in MS word files Pin
Ayesha Manzoor16-Mar-09 6:40
Ayesha Manzoor16-Mar-09 6:40 
AnswerRe: invisible watermark in MS word files Pin
0x3c016-Mar-09 6:52
0x3c016-Mar-09 6:52 
GeneralRe: invisible watermark in MS word files Pin
Ayesha Manzoor24-Mar-09 1:30
Ayesha Manzoor24-Mar-09 1:30 
AnswerRe: invisible watermark in MS word files Pin
led mike17-Mar-09 4:22
led mike17-Mar-09 4:22 
GeneralRe: invisible watermark in MS word files Pin
Ayesha Manzoor24-Mar-09 2:01
Ayesha Manzoor24-Mar-09 2:01 
GeneralRe: invisible watermark in MS word files Pin
led mike24-Mar-09 6:59
led mike24-Mar-09 6:59 
AnswerRe: invisible watermark in MS word files [modified] Pin
P13RC324-Mar-09 14:52
P13RC324-Mar-09 14:52 
GeneralRe: invisible watermark in MS word files Pin
Ayesha Manzoor26-Mar-09 9:02
Ayesha Manzoor26-Mar-09 9:02 
GeneralRe: invisible watermark in MS word files Pin
P13RC327-Mar-09 0:51
P13RC327-Mar-09 0:51 
GeneralRe: invisible watermark in MS word files Pin
Ayesha Manzoor27-Mar-09 7:50
Ayesha Manzoor27-Mar-09 7:50 
QuestionLED Display Code Query Pin
mauricemcse15-Mar-09 7:10
mauricemcse15-Mar-09 7:10 
AnswerRe: LED Display Code Query Pin
Luc Pattyn15-Mar-09 7:31
sitebuilderLuc Pattyn15-Mar-09 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.