Upgrading from OWC9 to OWC10 : Is OWC10 less safe than OWC9 ?

P

Patrice Dargenton

Hello,

I am upgrading a big software from OWC9 to OWC10, and I get a new random bug
(during a complex owc display) : NullReferenceException : Is OWC10 less safe
than OWC9 ?

System.NullReferenceException: La référence d'objet n'est pas définie à une
instance d'un objet.
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr
wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.AxHost.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Note : I did upgrade from 9 to 10 because, running onto some very few
computers, OWC9 was very slow for writing value in cells (the cause of the
bug has not been found since one year I found this bug).

Thanks for help.
 
A

Alvin Bruney [MVP]

This isn't your bug, it's a framework bug. You're getting an exception when
there is a window message pump. Long story short, if you can't ignore it or
catch the exception and swallow it, contact microsoft for a support patch if
they have one.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 
P

Patrice Dargenton

This isn't your bug, it's a framework bug

Are you sure ? I did rebuild my application with VB2005 and this bug is
still there, whereas I did use OWC9 (with VB2003) for past 2 years with
succes (except a slowness on very few computer).
Thanks anyway.
 
A

Alvin Bruney [MVP]

If you look at the stack trace, it shows you where the exception is being
thrown. That isn't user code, that is .NET framework code calling into
unmanaged code. If you google for the error message you will find quite a
few issues and workarounds as well.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Patrice Dargenton said:
This isn't your bug, it's a framework bug

Are you sure ? I did rebuild my application with VB2005 and this bug is
still there, whereas I did use OWC9 (with VB2003) for past 2 years with
succes (except a slowness on very few computer).
Thanks anyway.
-------------------------------------------------------
Patrice Dargenton
(e-mail address removed)
http://patrice.dargenton.free.fr/index.html
-------------------------------------------------------

-------------------------------------------------------
Alvin Bruney said:
This isn't your bug, it's a framework bug. You're getting an exception
when there is a window message pump. Long story short, if you can't
ignore
it or catch the exception and swallow it, contact microsoft for a support
patch if they have one.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
 
P

Patrice Dargenton

I googled :
System.NullReferenceException Forms.UnsafeNativeMethods.CallWindowProc

but I didn't find anything that can help me to figure out how to fix it. I
ordered your book, is there something about it inside ?
Thanks.
 
A

Alvin Bruney [MVP]

If you have a small sample project that demonstrates the problem, I can open
a support ticket for you (or you can do so for yourself if you care). That
will get a MS support person on the phone with you.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Patrice Dargenton said:
I googled :
System.NullReferenceException Forms.UnsafeNativeMethods.CallWindowProc

but I didn't find anything that can help me to figure out how to fix it. I
ordered your book, is there something about it inside ?
Thanks.
-------------------------------------------------------
Patrice Dargenton
(e-mail address removed)
http://patrice.dargenton.free.fr/index.html
-------------------------------------------------------

Alvin Bruney said:
If you look at the stack trace, it shows you where the exception is being
thrown. That isn't user code, that is .NET framework code calling into
unmanaged code. If you google for the error message you will find quite a
few issues and workarounds as well.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
 
P

Patrice Dargenton

No, I have not a small sample project, I only have a big project, but the
bug is reproducible at 50% time. Actually I returned back to OWC9, but I
can upgrade again my project to OWC10 in less than 2 minutes, if I find the
solution on the web. I will try OWC12 that seem to be a revamping of OWC10,
perhaps the bug is fixed.
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top