New control

  • Thread starter Thread starter Bom
  • Start date Start date
B

Bom

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
 
Bom,

That is not much information to go on. It sounds like you got a
NullReferenceException, 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.
 
Back
Top