Board index » delphi » TCanvas EInvalidOperation or EStackOverflow
G?ran Haraldsson
![]() Delphi Developer |
Sun, 21 Nov 2004 21:00:00 GMT
TCanvas EInvalidOperation or EStackOverflow
Hi,
This is the first time I write to this group. I am trying to controll an interna combustion engine with a programm written in Delphi5. We are measuring the cylinder pressure among other things and plotting this in real time on the screen. A couple of times a day I get EInvalidOperation "Canvas does not allow drawing" or EStackOverflow in the procedure TCanvas.RequiredState in the unit Graphics.pas. I have tried to enlarge the stack, but it did not help at all. The program is threaded and run in win98 environment. We use two A/D converters, where one is connected on the parallellport and the other is a PCI multifunction card. We also communicate with PIC processors for the injection on the other parallellport. What should I do to avoid problems with the TCanvas? Am I doing something |