473,233 Members | 1,673 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,233 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 1609
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.