<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 29.11.2021 17:18, Juha Manninen via
      lazarus wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPN1EhAhA-8aM_SNfzS7+CU7QNcAogvz1EdAz7QcriLwN6ejtA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">On Mon, Nov 29, 2021 at 1:32 PM Ondrej
                  Pokorny via lazarus <<a
                    href="mailto:lazarus@lists.lazarus-ide.org"
                    moz-do-not-send="true">lazarus@lists.lazarus-ide.org</a>>
                  wrote:<br>
                </div>
                <div class="gmail_quote">
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">There are many
                    scenarios when the Canvas cannot be accessed and it
                    is a <br>
                    common mistake to access it when not allowed.<br>
                    <br>
                    I didn't study the issue further but to me it looks
                    strange that setting <br>
                    some parameters in CreateParams helps with it. Juha,
                    your commit <br>
                    description "Somehow fixes issue ..." doesn't help
                    to understand your <br>
                    change either.<br>
                  </blockquote>
                  <div><br>
                  </div>
                  <div>The commit message is not perfect but the
                    committed code is, now that I fully understand the
                    issue.</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p>That is nonsense. I reverted your change. The code user code is
      just plain wrong and your change in TFrame doesn't change anything
      about it.</p>
    <p>Try e.g. :</p>
    <p>procedure TForm1.Button1Click(Sender: TObject);<br>
      var<br>
        grid: TNewGrid;<br>
      begin<br>
        grid := TNewGrid.Create(Self);<br>
        grid.MyProperty := 1; // exception<br>
      end;</p>
    <p>Btw. Delphi behaves the same.</p>
    <p>Ondrej<br>
    </p>
  </body>
</html>