Close MessageBox with X = Access violation

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34348
    Gabor Boros
    Participant

    Hi,

    Start the application, click on Button1. Close the messagebox with X. Click on Button1 again. Access violation.

    Tested with AC 7.30. I found an other thread in this subject: “[6.64 bug] MessageBox AccessViolation”.

    My sample code:

    Code:
    procedure TForm1.FormCreate(Sender: TObject);
    begin
    MySkinManager:=TsSkinManager.Create(Self);
    MySkinManager.SkinDirectory:='C:AC730Skins';
    MySkinManager.SkinName:='Vienna';
    Caption:=Caption+' – '+MySkinManager.SkinName+' – '+MySkinManager.Version;
    end;

    procedure TForm1.Button1Click(Sender: TObject);
    begin
    Application.MessageBox('aaa','bbb');
    end;

    Gabor

    #44810
    eledh
    Participant

    Hi,

    I tested your sample code, I also tried another modifications and no problem occured. It works properly without any AV.

    AC 7.30, Delphi 2007, Win7.

    Did you change anything else that is not in the sample code?

    #44813
    Gabor Boros
    Participant

    Hi,

    I just created a new application with the quoted FormCreate and Button1Click methods.

    I tried again and got different errors in different situations.

    If I run the application from the Delphi IDE I got AV, on same PC without the IDE

    the application freeze and eat CPU resources, on other PC I got Application error message.

    I use Delphi 2010 with Update 4,5 and Windows XP SP3.

    Now I attach the compiled sample application.

    Gabor

    'eledh' wrote:

    Hi,

    I tested your sample code, I also tried another modifications and no problem occured. It works properly without any AV.

    AC 7.30, Delphi 2007, Win7.

    Did you change anything else that is not in the sample code?

    #44815
    Support
    Keymaster

    Hello and thank you for the example. Difference is in Delphi versions.

    Delphi 7 haven't this problem, but Delphi 2010 have the error.

    This problem will be solved in the nearest release, I think.

    #44850
    Gabor Boros
    Participant

    Hi,

    My problem solved by 7.31. Thanks!

    Gabor

    'Support' wrote:

    Hello and thank you for the example. Difference is in Delphi versions.

    Delphi 7 haven't this problem, but Delphi 2010 have the error.

    This problem will be solved in the nearest release, I think.

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