Intensity grid throwing error on minimize

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Intensity grid throwing error on minimize

Post by greggorob64 » Mon Oct 01, 2018 7:32 pm

Been a while!

I don't know how long this has been happening, but my chart is having the ChartError event fired every time I minimize my intensity grid window. My application puts my screen in an 'error mode' when an unknown error occurs, and this is causing a problem.

Why is it an error state when the window containing the intenstiy grid is minimized? Is this yet another error I should be ignoring? I'm having trouble finding what "real problems" are that I need to be logging, and when there's just unspecified "junk" that shows up. Any thoughts?


Posts: 400
Joined: Mon Mar 14, 2016 9:22 am

Re: Intensity grid throwing error on minimize

Post by ArctionKestutis » Tue Oct 02, 2018 10:04 am

Hi there!

There is very specific reason why this error is thrown. That is, if manual margins are set (ViewXY.AxisLayout.AutoAdjustMargins = false) and window size is just too small to have positive GraphArea, XY drawing is cancelled and error is raised. Personally I believe that 'Unspecified' ErrorType is too frightening here. Probably more appropriate would be to use 'Warning' or 'Information' ErrorType. We will discuss with the team and most likely will change in the future.
As for now, you just need to ignore this error (if reason is the one I described above).

P.S. error is not specific to Intensity grid, it is just about Window size not able to accommodate any graph area.

Hope this helps.