473,404 Members | 2,174 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,404 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


Jul 21 '05 #1
3 1354
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
Jul 21 '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
Jul 21 '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

Jul 21 '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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.