473,387 Members | 1,553 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,387 software developers and data experts.

Help with cause of error please

Hi

This error appears from time to time either when my VB.NET program starts or
at some time during runtime. It is absolutely inconsistent. I change nothing
in my code and yet after I restart the program the error may or may not
appear again until some unknopwn future time. Sometimes the error doesn't
appear for days, other times it appears often in 1 day. It is very strange.

///
An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an
object.
///

Public Class frmMain <<<<<< this line triggers the error
Inherits System.Windows.Forms.Form
Could someone give me a link or idea on how to trap this error so that I may
get more detailed explanation of it's cause. If the error was triggered in a
sub/function I can trap with try/catch, however how do I catch unhandled
errors in the entire class?

Thanks
Harry


Nov 20 '05 #1
3 932
Hi,

Hard to say what is causing the error without seeing your code.

Ken
----------------

"harry" <harry@nospam> wrote in message
news:eg**************@TK2MSFTNGP12.phx.gbl:
Hi

This error appears from time to time either when my VB.NET program starts
or
at some time during runtime. It is absolutely inconsistent. I change
nothing
in my code and yet after I restart the program the error may or may not
appear again until some unknopwn future time. Sometimes the error doesn't

appear for days, other times it appears often in 1 day. It is very
strange.

///
An unhandled exception of type 'System.NullReferenceException' occurred in

system.windows.forms.dll

Additional information: Object reference not set to an instance of an
object.
///

Public Class frmMain <<<<<< this line triggers the error
Inherits System.Windows.Forms.Form
Could someone give me a link or idea on how to trap this error so that I
may
get more detailed explanation of it's cause. If the error was triggered in
a
sub/function I can trap with try/catch, however how do I catch unhandled

errors in the entire class?

Thanks
Harry


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #2
It would help if you could post more code - atleast the code in your startup

--
Sriram Krishnan
Microsoft Student Ambassador
Manager - Chennai .NET Student User Group (www.cnugstudent.net)
I blog at http://www.dotnetjunkies.com/weblog/sriram
Nov 20 '05 #3
"harry" <harry@nospam> schrieb
Hi

This error appears from time to time either when my VB.NET program
starts or at some time during runtime. It is absolutely inconsistent.
I change nothing in my code and yet after I restart the program the
error may or may not appear again until some unknopwn future time.
Sometimes the error doesn't appear for days, other times it appears
often in 1 day. It is very strange.

///
An unhandled exception of type 'System.NullReferenceException'
occurred in system.windows.forms.dll

Additional information: Object reference not set to an instance of
an object.
///

Public Class frmMain <<<<<< this line triggers the error
Inherits System.Windows.Forms.Form
Could someone give me a link or idea on how to trap this error so
that I may get more detailed explanation of it's cause. If the error
was triggered in a sub/function I can trap with try/catch, however
how do I catch unhandled errors in the entire class?


Post the callstack when the error occurs.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4

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

Similar topics

6
by: mike | last post by:
Hello, After trying to validate this page for a couple of days now I was wondering if someone might be able to help me out. Below is a list of snippets where I am having the errors. 1. Line 334,...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
2
by: pratchaya | last post by:
This is my sample error in my MySQL Log New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://www.mysql.com/doc/en/Using_stack_trace.html and follow instructions...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
2
by: Amanda | last post by:
From a guy in Microsoft newsgroups: | In *comp.databases.ibm-db2* there are always IBM guys | from the Toronto labs on line.Post with the | -for the love of god please help- | line...
3
by: Robert Rota | last post by:
Need help figuring out why my program core dumps and if I have the structures right. If you are interested in helping me I can send you a copy of the code. The program is supposed to mimic a 3...
1
by: Ketul Patel | last post by:
can someone please help me understand what might be the possible cause for following error Server Error in '/OnlineServices' Application....
4
by: Nick Weg | last post by:
Hello We have a web application developed in .NET using VB.NET. We get the error below every now and then and can't figure out how to correct it. The viewstate this error refers to is pretty...
3
by: Ramesh Dodamani | last post by:
Environment: XP Pro, VS.Net 2003, .Net 1.1.4322 with SP1 & KB Hotfix 886903 P4 2.2GHz, 1 GB RAM My system was working fine till a few weeks back when I started seeing the following errors. ...
12
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.