471,624 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,624 software developers and data experts.

"Red Cross" - Problem with C# application

I have a C# WinForms Application that contains various "old"
ActiveX-Controls. Due to some unknown reasons recently the "red cross" -
problems appears quite often.

Without any know reason suddenly some controls (buttons, toolbars...) will
be drawn completely white with a red cross inside it.

As I know from other postings this happens if there are exceptions during
the painting of the controls. The call stack shown in the exceptions also
suggests this reasons. Typically the errors read "null reference objects",
"object used elsewhere", "cannot create handle" etc.

Since all these errors happens *outside* my own code, it's impossible to use
a debugger. In fact, in all of that errors no single line of my code is
involved (as shown by the call stack).

As soon as I won't use the "old" ActiceX-controls everything works fine, so
I guess its a problem of the mixture of old and new technology.

Is there any way to handle these problems other than let the .NET runtime
draw a "red cross" ?

Is there any way i can fetch those problems in my code ? How ?

Thank you for any help!
Jul 21 '05 #1
0 1694

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Walter Quirtmair | last post: by
4 posts views Thread by AddAdd | last post: by
1 post views Thread by ZEDKYRIE | 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.