AV if using Application.ProcessMessages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33456
    kaju_74
    Participant

    Hi…

    I've a problem using the latest version if AlphaControls (v6.52, 6.51, 6.50, …):

    Try the following code:

    CODE
    unit Unit1;

    interface

    uses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, StdCtrls, Mask, sMaskEdit, sCustomComboEdit, sTooledit;

    type
      TForm4 = class(TForm)
        sDateEdit1: TsDateEdit;
        procedure FormActivate(Sender: TObject);
        procedure FormShow(Sender: TObject);
      private
        { Private-Deklarationen }
      public
        { Public-Deklarationen }
      end;

    var
      Form4: TForm4;

    implementation

    {$R *.dfm}

    procedure TForm4.FormActivate(Sender: TObject);
    begin
      // this creates an av:
      Application.ProcessMessages;
    end;

    procedure TForm4.FormShow(Sender: TObject);
    begin
      // this would work:
      //Application.ProcessMessages;
    end;

    end.

    If you try to select a date, the mainform get's out of focus. As soon as you close the editor, the form will be re-focused and crash, i.e. AV.

    Regads,
    kaju

    #41289
    Support
    Keymaster

    Hello
    I see a problem and I will try to fix it soon.

    #41295
    kaju_74
    Participant

    Thank you…8-)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.