By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,079 Members | 926 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,079 IT Pros & Developers. It's quick & easy.

"Red Cross" - Problem with C# application

P: n/a
Hello,
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!
Walter
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.