TaKo91 0 Posted July 11 Hello, when resizing or minimizing and maximizing VCL application the exception is thrown: First chance exception at $00007FFF326DBA99. Exception class EInvalidOperation with message 'Canvas does not allow drawing'. Call stack shows exception is thrown in Vcl::Graphics::TCanvas::RequiredState(System::Set<Vcl::Graphics::TCanvasStates, (Vcl::Graphics::TCanvasStates)0, (Vcl::Graphics::TCanvasStates)3>)() - see attached call stack text file. Best regards. Call stack.txt Share this post Link to post
Brandon Staggs 285 Posted July 11 Your mission, should you choose to accept it, is to find out which control has the canvas in that state and why. Share this post Link to post
eivindbakkestuen 47 Posted July 14 Looks VCL themes related. What Delphi version? Reproducible in a simple test app? Share this post Link to post
TaKo91 0 Posted July 15 Looks like the problem occurs when putting TSpeedButton with TRelativePanel into TScrollBox and then minimizing/maximizing the application. (C++ Builder 12.1) Share this post Link to post
David Heffernan 2353 Posted July 15 Consider sharing a program that behaves this way Share this post Link to post