By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,723 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,723 IT Pros & Developers. It's quick & easy.

Strange Error

P: n/a
I recieve the very strange error while compiling project:

"object reference net set to the instance of the object" in line 0 !!!
The first lines in this .cs are
using System;

using System.Collections;

using System.ComponentModel;

using System.Drawing;

using System.Data;

using System.Windows.Forms;

So what is the problem???


Nov 15 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
I recieve the very strange error while compiling project:

"object reference net set to the instance of the object" in line 0 !!!
The first lines in this .cs are
using System;

using System.Collections;

using System.ComponentModel;

using System.Drawing;

using System.Data;

using System.Windows.Forms;


Hi Tamir,

You could try stepping through the code with a debugger to see where the
actual problem is. One of your references is set to null or undefined.

Joe
--
http://www.csharp-station.com
Nov 15 '05 #2

P: n/a
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote:
I recieve the very strange error while compiling
project:
"object reference net set to the instance of the
object" in line 0 !!!


Can you reproduce this in a small, simple program that you could post here?

P.

--
www.CL4.org
Nov 15 '05 #3

P: n/a
There are no error in debugger.....
The error appears as task in the Task List and cause the same error while
adding this control to form...
The program compiles, but there are 3 lines of Object reference... Line 0 in
Task List

Any clues?

"Joe Mayo" <jm***@ddiieessppaammeerrssddiiee.com> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
I recieve the very strange error while compiling project:

"object reference net set to the instance of the object" in line 0 !!!
The first lines in this .cs are
using System;

using System.Collections;

using System.ComponentModel;

using System.Drawing;

using System.Data;

using System.Windows.Forms;


Hi Tamir,

You could try stepping through the code with a debugger to see where the
actual problem is. One of your references is set to null or undefined.

Joe
--
http://www.csharp-station.com

Nov 15 '05 #4

P: n/a
I tried to reproduce it - nothing. The problem is that the program (user
control) compiles, but leaves 3 tasks with "object reference...line 0" in
the task list. the error occures while adding this component to form...


"Paul E Collins" <fi******************@CL4.org> wrote in message
news:bp**********@titan.btinternet.com...
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote:
I recieve the very strange error while compiling
project:
"object reference net set to the instance of the
object" in line 0 !!!
Can you reproduce this in a small, simple program that you could post

here?
P.

--
www.CL4.org

Nov 15 '05 #5

P: n/a


"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:uf**************@tk2msftngp13.phx.gbl...
I tried to reproduce it - nothing. The problem is that the program (user
control) compiles, but leaves 3 tasks with "object reference...line 0" in
the task list. the error occures while adding this component to form...

Do you have the source code to the component. If so, open a second instance
of VS.NET with the debug version of the component project, select
Debug/Processes and attach to the DevEnv.exe instance that you want to add
the component to, make sure break points are set in the component source
code, and try to drop your component onto the form in the first instance of
VS.NET. If you have your breakpoint set in the right place on the second
instance of DevEnv it will stop there so you can step through your code.

Joe
--
http://www.csharp-station.com
Nov 15 '05 #6

P: n/a

Hi Tamir,

In your previous description, I think this error may due to the component.
I think you should follow Joe's suggestion to debug the this component to
find the cause.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.