New control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bom

    #1

    New control

    Hi,

    I created a new control and build a Dll of it.

    Then I open a windows application (C#) and add this dll to
    the toolbox. When I will put it on my form I receive
    following error :

    An exception occurred while trying to create an instance
    of NSDataListView. DataListView. The exception was "Object
    reference not set to an instance of an object.".

    Is there something wrong in my new control? What could it
    be?
    Thanks

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: New control

    Bom,

    That is not much information to go on. It sounds like you got a
    NullReferenceEx ception, which could be thrown by anything that your control
    uses. Perhaps you are using a reference that didn't point to anything, or a
    component that you were using had the same thing.

    I would compile the dll in debug mode, and try and determine from the
    stack trace where the error is occuring.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nick(dot)paldin o=at=exisconsul ting<dot>com


    "Bom" <newsgroup.emai l@pandora.be> wrote in message
    news:2401501c38 cb6$bf456b00$a6 01280a@phx.gbl. ..[color=blue]
    > Hi,
    >
    > I created a new control and build a Dll of it.
    >
    > Then I open a windows application (C#) and add this dll to
    > the toolbox. When I will put it on my form I receive
    > following error :
    >
    > An exception occurred while trying to create an instance
    > of NSDataListView. DataListView. The exception was "Object
    > reference not set to an instance of an object.".
    >
    > Is there something wrong in my new control? What could it
    > be?
    > Thanks
    >[/color]


    Comment

    Working...