azae Posted February 18, 2005 Posted February 18, 2005 Can anyone tell me what does it mean? It come out on Build Error Message.. after I press F5... C:\Project\FileCopier\Form1.cs(245): 'FileCopier.Form1.Dispose()' : cannot override inherited member 'System.ComponentModel.Component.Dispose()' because it is not marked virtual, abstract, or override How do I overcome it? So program can run smoothly Quote
Administrators PlausiblyDamp Posted February 18, 2005 Administrators Posted February 18, 2005 It looks like you are trying to override the Dispose method but not getting it quite right. Post the relevant code and perhaps we may be able to give you a hand. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Diesel Posted February 18, 2005 Posted February 18, 2005 I did not know you could override dispose methods...I thought you could only override finalize? Quote
azae Posted February 21, 2005 Author Posted February 21, 2005 ok here is the code /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } Quote
Administrators PlausiblyDamp Posted February 21, 2005 Administrators Posted February 21, 2005 What class are you inheriting from? It looks like a form but that code should be fine... Also what version of VS are you using? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
penfold69 Posted February 21, 2005 Posted February 21, 2005 Does this problem go away (briefly) when you close and reopen the IDE, and is your project "relatively" large? (over 80k lines in total) If so, you might want to look at: http://support.microsoft.com/kb/822690 I had this problem (bloody annoying!) but the hotfix seems to have cured it completely. B. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.