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

System.NullReferenceException

TPI
Helo - I need some help?

This on System.NullReferenceException I have:

at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windo ws.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopI nner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop( Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at ELIPSON.Form1.Main()

Application is working good and goes down - that exeption i caught.

--
Robert Janda
"elPLC" Sp. z o.o.
ul. Henryka Dobrzanskiego 6
33-111 Koszyce Wielkie, Poland
tel./fax +48(014) 623 04 19
GSM 0 603 313 252
e-mail: ro**********@elPLC.com, bi***@elPLC.com
www: www.elPLC.pl, www.elPLC.com

"Ten dokument zawiera informacje poufne, które moga byc równiez objete
tajemnica handlowa lub sluzbowa. Jest on przeznaczony do wylacznego uzytku
adresata. Jesli nie sa Panstwo jego adresatem lub jesli otrzymaliscie
Panstwo ten dokument omylkowo, to wszelkie rozpowszechnianie, dystrybucja,
reprodukcja, kopiowanie, publikacja lub wykorzystanie tego dokumentu czy tez
zawartych w nim informacji jest zabronione. Jesli otrzymali Panstwo te
wiadomosc przez pomylke, prosimy o bezzwloczne skontaktowanie sie z nami
oraz usuniecie tej wiadomosci z Panstwa komputera."
Dec 16 '05 #1
3 2252
Without seeing your code or knowing anything about what you are doing,
it is impossible to say.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"TPI" <rt**@el.com> wrote in message
news:dn**********@nemesis.news.tpi.pl...
Helo - I need some help?

This on System.NullReferenceException I have:

at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windo ws.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32
reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopI nner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop( Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at ELIPSON.Form1.Main()

Application is working good and goes down - that exeption i caught.

--
Robert Janda
"elPLC" Sp. z o.o.
ul. Henryka Dobrzanskiego 6
33-111 Koszyce Wielkie, Poland
tel./fax +48(014) 623 04 19
GSM 0 603 313 252
e-mail: ro**********@elPLC.com, bi***@elPLC.com
www: www.elPLC.pl, www.elPLC.com

"Ten dokument zawiera informacje poufne, które moga byc równiez objete
tajemnica handlowa lub sluzbowa. Jest on przeznaczony do wylacznego uzytku
adresata. Jesli nie sa Panstwo jego adresatem lub jesli otrzymaliscie
Panstwo ten dokument omylkowo, to wszelkie rozpowszechnianie, dystrybucja,
reprodukcja, kopiowanie, publikacja lub wykorzystanie tego dokumentu czy
tez
zawartych w nim informacji jest zabronione. Jesli otrzymali Panstwo te
wiadomosc przez pomylke, prosimy o bezzwloczne skontaktowanie sie z nami
oraz usuniecie tej wiadomosci z Panstwa komputera."

Dec 16 '05 #2
"TPI" <rt**@el.com> wrote in message
news:dn**********@nemesis.news.tpi.pl...
Helo - I need some help?

This on System.NullReferenceException I have:

at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windo ws.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32
reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopI nner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop( Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at ELIPSON.Form1.Main()

Application is working good and goes down - that exeption i caught.

We had a crash in our application, with a very similar stack trace. This
hotfix seemed to make it go away:

http://support.microsoft.com/?kbid=899511

Marc
http://nomagichere.blogspot.com
Dec 16 '05 #3
TPI
Thanks.

I found the reason of the excepion.
I added en event coming from the outside COM object -> OnDisconnected

The object was trying to raise the event when my Form was Disposed.

Thanks again.
Użytkownik "Marc Bernard" <fi****************@agfa.com> napisał w wiadomo¶ci
news:u$*************@TK2MSFTNGP12.phx.gbl...
"TPI" <rt**@el.com> wrote in message
news:dn**********@nemesis.news.tpi.pl...
Helo - I need some help?

This on System.NullReferenceException I have:

at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windo ws.Forms.UnsafeNativeMetho ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32
reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopI nner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop( Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at ELIPSON.Form1.Main()

Application is working good and goes down - that exeption i caught.

We had a crash in our application, with a very similar stack trace. This
hotfix seemed to make it go away:

http://support.microsoft.com/?kbid=899511

Marc
http://nomagichere.blogspot.com

Dec 19 '05 #4

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

Similar topics

3
by: Terrence | last post by:
I am doing some of the C# walkthroughs to transition from VB to C#. When I try to execute static void Main() { Aplication.Run(new Form1()) } I raise a 'System.NullReferenceException" in...
1
by: Rafael | last post by:
Hi, I hope I can find some help for this problem IDE: Visual Studio.NET 2003 Developer Editio Language: C# Problem: "An unhandled exception of type 'System.NullReferenceException' occurred in...
7
by: mike p. | last post by:
I have a docbook xml file, and am using standard docbook 1.61.3 xsl stylesheets to do xhtml transform. Transform works fine when using MSXML. When I try to do the following using asp.net 1.1: ...
0
by: muralidharan | last post by:
WebForm1.aspx Code: <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %> <ComponentArt:TreeView id="TreeView1" Height="520"...
0
by: Matthias Kwiedor | last post by:
Hi! I want to create a WebBrowser Control at runtime. So i ported the "at start creation" of the Control to a new routine. Everything works fine, but i implement the BeforeNavigateFix and a...
2
by: Raed Sawalha | last post by:
i have a windows form(Main) with listview, when click an item in listview i open other window form (Sub) which generate the selected item from parent window in as treeview items when click any item...
1
by: msnews.microsoft.com | last post by:
I'm trying to fill an array of objects but when I add the first object I get a NullReferenceException. ----------------------------------------------------------------------------...
2
by: sxiao | last post by:
Hi, there I got a NullReferenceException when there are more than one users trying to open the same page at the same time. The senerio is: Two users logged into the web application using the...
6
by: William Mild | last post by:
I must be getting brain fried. I can't see the error. Create a new web form with the following code begind: Public Class test Inherits System.Web.UI.Page Public Class ReportCardData ...
3
by: Alex J. | last post by:
I just started to learn C# (my background is in C++), and right now I study the sockets, TCP/IP etc... so, I found a usefull source code at:...
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
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
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
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.