RadDesktopAlert - derived class, compiler error

3 posts, 0 answers
  1. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 23 Jun 2010 Link to this post

    Hello,

    I derived a new class from the RadDesktopAlert class and there i get this compiler error when i try to compile it:

        public partial class BITDesktopAlert : RadDesktopAlert  
        {  
            protected override void Dispose( bool disposing )  
            {  
                if ( disposing && ( components != null ) )  
                {  
                    components.Dispose( );  
                }  
                base.Dispose( disposing );  
            }  
         }  
     

    Compiler error message:
    Fehler 1 "BITSteuerelemente.BITDesktopAlert.Dispose(bool)": Der geerbte Member "Telerik.WinControls.DisposableObject.Dispose(bool)" kann nicht überschrieben werden, weil er nicht als "virtual", "abstract" oder "override" markiert ist. 

    Is it not possible to override the Dispose method ?

    Kind Regards,

    Ramius
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 28 Jun 2010 Link to this post

    Hi Ramius,

    Thanks for contacting us and for your question.

    Please use the DisposeManagedResources() method to perform your cleanup logic. This method is virtual and can be overriden in descendant classes.

    I hope this helps.

    All the best,
    Deyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 29 Jun 2010 Link to this post

    Hi Deyan,

    thank you for your help.

    This works fine now.

    Kind Regards,

    Ramius
Back to Top