473,394 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

line number question

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
Nov 16 '05 #1
5 1617
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
"Marge Inoferror" <in*****************@yahoo.com> wrote in message news:E1***************@newssvr15.news.prodigy.com. ..
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
Nov 16 '05 #2
Thanks, Bob

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

thanks,
-marge
"Bob Grommes" <bo*@bobgrommes.com> wrote in message news:uO****************@TK2MSFTNGP09.phx.gbl...
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
"Marge Inoferror" <in*****************@yahoo.com> wrote in message news:E1***************@newssvr15.news.prodigy.com. ..
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
Nov 16 '05 #3
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.
"Marge Inoferror" <in*****************@yahoo.com> wrote in message
news:Tp***************@newssvr15.news.prodigy.com. ..
Thanks, Bob

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

thanks,
-marge
"Bob Grommes" <bo*@bobgrommes.com> wrote in message
news:uO****************@TK2MSFTNGP09.phx.gbl...
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
"Marge Inoferror" <in*****************@yahoo.com> wrote in message
news:E1***************@newssvr15.news.prodigy.com. ..
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
Nov 16 '05 #4
Yes, and there is also Borland's C# environment, whose name eludes me at the
moment.

--Bob

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2*****************@TK2MSFTNGP10.phx.gbl...
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.
"Marge Inoferror" <in*****************@yahoo.com> wrote in message
news:Tp***************@newssvr15.news.prodigy.com. ..
Thanks, Bob

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

thanks,
-marge

Nov 16 '05 #5

"Bob Grommes" <bo*@bobgrommes.com> wrote in message
news:ug*************@TK2MSFTNGP10.phx.gbl...
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.
--Bob

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2*****************@TK2MSFTNGP10.phx.gbl...
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.
"Marge Inoferror" <in*****************@yahoo.com> wrote in message
news:Tp***************@newssvr15.news.prodigy.com. ..
Thanks, Bob

I was asking about Visual Studio.net. Are there other development

platforms
for C# / dotnet ?

thanks,
-marge


Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
0
by: Me | last post by:
I am writing a web application and I want to catch and rethrow every unhandled exception to the Application_Error. However, the line number indicated in the stack trace is from the Throw line,...
11
by: kaisersose1995 | last post by:
Hi, I've got an import procedure working, using a standard import specification to import a .csv file into a temporary table. The problem i'm having is that i have 4 different sets of borrower...
9
by: Adi | last post by:
Hello eveyone, I wanna ask a very simple question here (as it was quite disturbing me for a long time.) My problem is to read a file line by line. I've tried following implementations but still...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.