line number question

  • Thread starter Thread starter Marge Inoferror
  • Start date Start date
M

Marge Inoferror

Well, 2 questions, actually...

I get an error when my form's window gets covered by another window. I can resize sucessfully all day, but when the window is covered by another window - it bombs Here is the error:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Talk.Form1.OnPaint(PaintEventArgs e) in g:\talk\form1.cs:line 244

One question would be - any ideas on what to look for as far as the source of the error is concerned?
The other question is - is there a way to find where line 244 is in the source code (other than counting the lines)?

Thanks,
Marge
 
Marge,

As the the first question ... the source of the error is the form's OnPaint event. That is not likely to be a very large amount of code. To get to the exact line, simply choose Edit | Go To ... and specify the line number. Or watch the status bar as you scroll through the file, for the current line number.

Of course your question suggests you aren't using Visual Studio, but we aren't into guessing ... the more info you provide the more we can help.

--Bob
Well, 2 questions, actually...

I get an error when my form's window gets covered by another window. I can resize sucessfully all day, but when the window is covered by another window - it bombs Here is the error:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Talk.Form1.OnPaint(PaintEventArgs e) in g:\talk\form1.cs:line 244

One question would be - any ideas on what to look for as far as the source of the error is concerned?
The other question is - is there a way to find where line 244 is in the source code (other than counting the lines)?

Thanks,
Marge
 
Thanks, Bob

I was asking about Visual Studio.net. Are there other development platforms for C# / dotnet ?

thanks,
-marge


Marge,

As the the first question ... the source of the error is the form's OnPaint event. That is not likely to be a very large amount of code. To get to the exact line, simply choose Edit | Go To ... and specify the line number. Or watch the status bar as you scroll through the file, for the current line number.

Of course your question suggests you aren't using Visual Studio, but we aren't into guessing ... the more info you provide the more we can help.

--Bob
Well, 2 questions, actually...

I get an error when my form's window gets covered by another window. I can resize sucessfully all day, but when the window is covered by another window - it bombs Here is the error:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Talk.Form1.OnPaint(PaintEventArgs e) in g:\talk\form1.cs:line 244

One question would be - any ideas on what to look for as far as the source of the error is concerned?
The other question is - is there a way to find where line 244 is in the source code (other than counting the lines)?

Thanks,
Marge
 
You can write C# in any editor, however there is atleast SharpDevelop and I
think Eclipse has a C# plugin, though I believe it isn't terribly well
regarded.


Thanks, Bob

I was asking about Visual Studio.net. Are there other development platforms
for C# / dotnet ?

thanks,
-marge


Marge,

As the the first question ... the source of the error is the form's OnPaint
event. That is not likely to be a very large amount of code. To get to the
exact line, simply choose Edit | Go To ... and specify the line number. Or
watch the status bar as you scroll through the file, for the current line
number.

Of course your question suggests you aren't using Visual Studio, but we
aren't into guessing ... the more info you provide the more we can help.

--Bob
Well, 2 questions, actually...

I get an error when my form's window gets covered by another window. I can
resize sucessfully all day, but when the window is covered by another
window - it bombs Here is the error:

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object.
at Talk.Form1.OnPaint(PaintEventArgs e) in g:\talk\form1.cs:line 244

One question would be - any ideas on what to look for as far as the source
of the error is concerned?
The other question is - is there a way to find where line 244 is in the
source code (other than counting the lines)?

Thanks,
Marge
 
Yes, and there is also Borland's C# environment, whose name eludes me at the
moment.

--Bob
 
Bob Grommes said:
Yes, and there is also Borland's C# environment, whose name eludes me at
the
moment.

Ya, C# Builder I think. That would keep it inline with their other products
anyway. Forgot about that one.
 
Back
Top