Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Acessviolation "ieframe.dll" Read adrress 00..- fsStayOnTop (https://www.delphipraxis.net/85333-acessviolation-ieframe-dll-read-adrress-00-fsstayontop.html)

mr_fahrrad 29. Jan 2007 14:05


Acessviolation "ieframe.dll" Read adrress 00..- fs
 
I have 2 buttons and one form. In the button 1 show the Form1 in fsNormal. in the button 2 show the Form2 in fsStayOnTop

the problem is:

When I press the button 1 (fsNormal) and after i press button2 (fsStayOnTop) I get the error

"Access violation in ieframe.dll' read address 0000000"

Anybody have a suggestion to fix this?

SirThornberry 29. Jan 2007 14:09

Re: Acessviolation "ieframe.dll" Read adrress 00..
 
it seems that form2 is not initialzed (nil).

mr_fahrrad 29. Jan 2007 14:25

Re: Acessviolation "ieframe.dll" Read adrress 00..
 
No. I have just one form (form1) and the two buttons show the Form1 (the One with fsNormal and the Button2 with fsStayOnTop)

I believe that the error happens when I change the the formStyle from fsNormal to fsStayOnTop

SirThornberry 29. Jan 2007 14:43

Re: Acessviolation "ieframe.dll" Read adrress 00..
 
Can you please post the source code?
I hope you don't use:
Delphi-Quellcode:
FormXY.FormStyle := ...

mr_fahrrad 29. Jan 2007 15:39

Re: Acessviolation "ieframe.dll" Read adrress 00..
 
at button1
Delphi-Quellcode:
Form1.FormStyle:=fsNormal;
Form1.Show;
at button2
Delphi-Quellcode:
Form1.FormStyle:=fsStayOnTop;
Form1.Show;

Robert Marquardt 29. Jan 2007 15:44

Re: Acessviolation "ieframe.dll" Read adrress 00..
 
From my D6 help: "Note: It is not advisable to change FormStyle at runtime"

SirThornberry 29. Jan 2007 17:08

Re: Acessviolation "ieframe.dll" Read adrress 00..
 
try to remove the "Form1." at the beginning of each line.


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:07 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz