in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Inheritance-problem C1Combo

Last post 05-01-2008 3:26 AM by C1_SamX. 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 09-10-2003 11:37 AM

    Inheritance-problem C1Combo

    With the actual version (20033_23) of C1List i have the following problem:

    In design-view I get the following error:

    Property accessor 'WillChangeToText' on object '(new class)'
    threw the following exception:
    'Object reference not set to an instance of an object'


    This error has had Tanja Mattfeldt, written in the newsgroup at 14.04.2003.

    If i use version 20023_19B, i get no error.






    Click here to view the original newsgroup article (read only).

  • 01-07-2008 10:55 AM In reply to

    Re: Inheritance-problem C1Combo

    I am having issue with inheritance too. I have only one line of code in it. I am using version c1List.2_2.1.20073.132

    Please provide help as this is urgent. 

     Thanks

    Here is the code in the class file :

    Public Class MyCombo
        Inherits C1.Win.C1List.C1Combo

    End Class 

    This is the error message I get when opening the designer :

     

    Object reference not set to an instance of an object.
    Hide    

    at C1.Win.C1List.o.b()
    at C1.Win.C1List.o.d(Object A_0, EventArgs A_1)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.ComponentModel.Design.DesignerHost.OnLoadComplete(EventArgs e)
    at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.Serialization.IDesignerLoaderHost.EndLoad(String rootClassName, Boolean successful, ICollection errorCollection)
    at System.ComponentModel.Design.Serialization.BasicDesignerLoader.OnEndLoad(Boolean successful, ICollection errors)
    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.OnEndLoad(Boolean successful, ICollection errors)
    at System.ComponentModel.Design.Serialization.BasicDesignerLoader.System.ComponentModel.Design.Serialization.IDesignerLoaderService.DependentLoadComplete(Boolean successful, ICollection errorCollection)
    at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
    at System.ComponentModel.Design.DesignerHost.BeginLoad(DesignerLoader loader)

     

    Filed under:
  • 01-07-2008 5:15 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 515

    Re: Inheritance-problem C1Combo

    Hi, 

    I am unable to reproduce this problem using the version mentioned.  I've attached my working sample so please try to open it with version 20073.132 and see if you can open the designer.  Otherwise, there may be more more steps to reproduce your issue as I am able to view the designer and modify the Inherited control on the form.  I can also close and reopen the designer without any problems with MyCombo.

    Regards,
    Greg L

  • 01-08-2008 9:33 AM In reply to

    Re: Inheritance-problem C1Combo

     Hi Greg, Thanks for your reply but issue persists. Your attached sample code does work and i do not see problems with forms. Issue happens if you add a new component class file and then put the inherit statement in the designer and the class file and then try to open the designer and it shows the below message  :

     ---------------------------
    Microsoft Visual Studio
    ---------------------------
    Object reference not set to an instance of an object.
    ---------------------------
    OK  
    ---------------------------

    Please see if you can make it work with component class as i can open other C1 designers fine which are also setup similarly.

     

    Thanks
     

  • 01-08-2008 1:15 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 515

    Re: Inheritance-problem C1Combo

    Thank you for clarifying that the problem is in a Component Class Designer and not the Form designer.  I see the problem now. 

    Were you ever able to inherit C1Combo before with a Component Class?  I am curious if a previous version worked for you and the problem showed up after an upgrade.  I tested a few older versions with no luck.

    But this issue has been escalated to our developer.  I'm sorry I don't have a work around other than inheriting the control via a class as my sample.  I will update here with any fixes.

    Regards,
    Greg L

    Issue ID: VNLST000650

     

  • 01-08-2008 3:32 PM In reply to

    Re: Inheritance-problem C1Combo

     This was a non issue in the earlier version. We were using it in VS 2003 without any issues.

    c1.win.c1input 

    Runtime Version v1.0.3705

    Version 1.0.20031.0 

    If that helps in anyway. 

     

     

  • 01-10-2008 9:16 AM In reply to

    Re: Inheritance-problem C1Combo

    Any idea on when the fix will be released for the issue? 

  • 01-15-2008 4:36 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 515

    Re: Inheritance-problem C1Combo

    This issue has been fixed in upcoming version c1List.2_2.1.20081.134

    http://prerelease.componentone.com/

    Regards,
    Greg L

  • 03-10-2008 2:36 PM In reply to

    Re: Inheritance-problem C1Combo

     I still have issues with inheritance. If this issue is fixed how can i get the new version?

  • 05-01-2008 3:26 AM In reply to

    Re: Inheritance-problem C1Combo

    Hi,
    Please download the latest version from following location:
     
    Regards,
    Sam Xavier
    <CampOne> wrote in message news:202711@10.0.1.98...

     I still have issues with inheritance. If this issue is fixed how can i get the new version?



    http://helpcentral.componentone.com/cs/forums/p/39801/202711.aspx#202711

Page 1 of 1 (10 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.