"Red Cross" - Problem with C# application

  • Thread starter Thread starter Walter Quirtmair
  • Start date Start date
W

Walter Quirtmair

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
 
Back
Top