Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1425
Understanding the big red cross (X)
posted

Hi all,

I've witnessed this big red cross appearing in place of an UltraGrid when calls wern't marshalled correctly to the main/UI thread when making use of the control.

I have an application that I've ensured only accesses controls from the main/UI thread.

Recently, we've been stress-testing our application and have witnessed this red cross again. This time it appears in place of a ribbon/toolbar control. It's only ever appeared when we're using excessive amounts of memory - causing some components of the application to become sluggish. One example is when the user creates a scatter UltraChart component that has about 40,000 points of data.

So I have a couple of questions concerning this issue:

  1. I've noticed different chart types have different thresholds for the amount of data they can use (understandably) e.g. a pie chart may start to be a bit slugglish when using more than 100 slices, whereas a scatter chart could cope with 1000 points quite comfortably. Is it normal for a scatter UltraChart to fall over with 40,000 points? Are there any general thresholds that have been established (I understand this is specific to ones PC, but if there are some rough numbers, it'd be much appreciated).
  2. When creating this scatted chart with 40,000 points, it becomes very slow - especially when hovering over the chart to display tooltips etc. Could this cause the red cross to appear in the ribbon/toolbar due to lack of memory or CPU to repaint the controls properly? Maybe an OutOfMemoryException is being thrown in the ribbon/toolbar?

I'd appreciate any more information regarding this red cross. From what I've read so far:

  • It "almost always" occurs when a call is made to a control from another thread (not the main/UI thread it was constructed on).
  • It occurs when a control attempts to Paint itself and an exception occurs.

Any information what so ever (even simply to clarify my current understanding is correct) would be greatly appreciated.

Cheers,

Richard