Jump to content
TaKo91

VCL - Canvas does not allow drawing

Recommended Posts

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×