471,306 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 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 2133
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Terrence | last post: by
1 post views Thread by msnews.microsoft.com | last post: by
3 posts views Thread by Alex J. | last post: by
reply views Thread by rosydwin | last post: by

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.