Chart throws an InvalidOperationException
Posted: Tue May 25, 2010 9:43 am
Hello,
while I was trying to reproduce another problem I'm having with TeeChart, I stumbled across this one. The example has been tested with version 3.5.3700.30575. It should throw the exception a few seconds after start-up. When setting AutoRepaint to false I had to resize the window to get the same behavior.
Am I doing something wrong?
EDIT: I also tried to invoke the code in the timer event handler and using .Refresh instead of .Draw but then it starts hanging after resizing the chart for some time.
while I was trying to reproduce another problem I'm having with TeeChart, I stumbled across this one. The example has been tested with version 3.5.3700.30575. It should throw the exception a few seconds after start-up. When setting AutoRepaint to false I had to resize the window to get the same behavior.
Am I doing something wrong?
EDIT: I also tried to invoke the code in the timer event handler and using .Refresh instead of .Draw but then it starts hanging after resizing the chart for some time.