Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Delphi: Для новичков > ''invalid floating poing operation'' error


Автор: muratboy31 18.1.2010, 15:15
i get the error when surfing in the web pages but i really dont know why i get it... i even tied to stop script errors but it is still the same !!!

Код

webbrowser1.Silent:=true;


user posted image

what can cause the problem !!!
help please
thanks

Автор: profesiachuvak 19.1.2010, 23:15
I think name of topic is answer on your question. Without code it's very hard find your mistake.

Автор: muratboy31 20.1.2010, 14:05
it is script error in the web page... i tried to stop it but it is still the same !!!

Автор: Данкинг 20.1.2010, 15:23
I think that WebBrowser ain't guilty.  smile Search your code for an error. smile 

Автор: muratboy31 20.1.2010, 16:24
@ Данкинг  smile  smile 

i am %100 sure web browser is quilty because i tired it with a simple project no buttons nothing just a webbrowser object and i still got the error... it definitely from web page... propably a script error...

here is the code i used and i still got the error

Код

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, OleCtrls, SHDocVw;

type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
webbrowser1.Navigate('giyim.gittigidiyor.com/Kadin-Aksesuar_Canta-Cuzdan_W0QQkatZZekcQQfy1ZZ19QQIS0_ZZQQsraZZhpaQQstrZZcatalog');
end;

end.


what i want to know is how can i stop this script error...

Автор: Данкинг 20.1.2010, 16:37
Цитата(muratboy31 @  20.1.2010,  16:24 Найти цитируемый пост)
it definitely from web page...

And with another web page that error still persists?

Автор: muratboy31 20.1.2010, 17:01
no just with this page... just the page not the whole web site

Автор: ZLOvar 20.1.2010, 21:44
muratboy31, 
Maybe, error not in your project. She is in script. You check this script on any error?

Автор: muratboy31 20.1.2010, 22:09
what do you mean ?

Автор: ZLOvar 20.1.2010, 22:22
muratboy31, 
Maybe in site script make a mistake. You checking the code script on the any error? 
P.S Excuse me, if incomprehensibly I write. I not a Englishman.

Автор: muratboy31 21.1.2010, 00:10
yes there is script error in the site but it makes my project to crash... so what can i do to stop script error !!!

Автор: Данкинг 21.1.2010, 00:41
muratboy31, yes, you're right, my program crashes with that URL too. smile 
Цитата(muratboy31 @  21.1.2010,  00:10 Найти цитируемый пост)
so what can i do to stop script error !!! 

 smile Nothing, it seems to me.

Автор: muratboy31 21.1.2010, 09:45
i think this will stop it but i dont know how to execute it to webbrowser !!!

Код

functioncatchError() { returnfalse; }  
window.onerror = catchError;

Автор: artsb 21.1.2010, 10:53
muratboy31, try open your web page in IE web browser. Error remained?
If yes - do nothing.

Автор: muratboy31 21.1.2010, 11:46
no error doesnt remian with internet explorer !!!  i get no error with internet explorer

Автор: artsb 21.1.2010, 12:05
Цитата(muratboy31 @  21.1.2010,  11:46 Найти цитируемый пост)
no error doesnt remian with internet explorer !!!  i get no error with internet explorer 

So-o-o-o... Search error in your code.  smile 

Автор: muratboy31 21.1.2010, 12:08
my code smile   ok u find it...
as i said before i dont even have a code just a simple project with just a webbrowser object and i still get error !!!

Код

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, OleCtrls, SHDocVw;

type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
webbrowser1.Navigate('giyim.gittigidiyor.com/Kadin-Aksesuar_Canta-Cuzdan_W0QQkatZZekcQQfy1ZZ19QQIS0_ZZQQsraZZhpaQQstrZZcatalog');
end;

end.


Автор: Данкинг 21.1.2010, 12:15
artsb, у меня тоже ошибка выскакивает, при этом в непосредственно IE всё нормально.

Автор: artsb 21.1.2010, 12:23
Может дело в среде. Она отлавливает ошибки и компонент WebBrowser не может обработать их сам. Попробуй запустить не из под среды (мне лень тестовый проект лепить smile)

Автор: muratboy31 21.1.2010, 12:24
i tried it but error is still there !!! it is very strange !!! 

Автор: artsb 21.1.2010, 12:34
muratboy31, i'm create project. Your code good working on BDS 2010. I don't have errors.

Автор: muratboy31 21.1.2010, 12:36
i am using delphi 7
do you think thats why i get the error !!!

did u navigate this link ;
Код

giyim.gittigidiyor.com/Kadin-Aksesuar_Canta-Cuzdan_W0QQkatZZekcQQfy1ZZ19QQIS0_ZZQQsraZZhpaQQstrZZcatalog

Автор: artsb 21.1.2010, 12:43
Цитата(muratboy31 @  21.1.2010,  12:36 Найти цитируемый пост)
do you think thats why i get the error !!!

Maybe bag in environment. You install all updates?

Цитата(muratboy31 @  21.1.2010,  12:36 Найти цитируемый пост)
did u navigate this link ;

I'm tried with him.

Автор: Guedda 21.1.2010, 13:43
together because.

Автор: muratboy31 21.1.2010, 15:24
i just updated delphi to the latest package and it is still the same !!! still getting error  smile 

Автор: artsb 21.1.2010, 17:01
Probably a mistake not corrected...

Автор: muratboy31 22.1.2010, 12:05
oooooooo i will go mad   smile 
here is nother site giving the same orror !!!

Код

http://www.tatilvitrini.com


how can i stop it !!!

''invalid floating poing operation''

i just want to try to stop it with javscript code but i need help to execute it to webbrowser object !!!

Код

functioncatchError() { returnfalse; }  
window.onerror = catchError;

Автор: Staruha 22.1.2010, 16:31
или региональные настройки меняйте в плане точка-запятая.Или вам сюда
http://forum.vingrad.ru/forum/topic-284336.html

Автор: muratboy31 22.1.2010, 17:04
Цитата(Staruha @ 22.1.2010,  16:31)
или региональные настройки меняйте в плане точка-запятая.Или вам сюда
http://forum.vingrad.ru/forum/topic-284336.html

thanks for reply but i didnt understand it !!!

Автор: artsb 22.1.2010, 17:46
Цитата(muratboy31 @  22.1.2010,  17:04 Найти цитируемый пост)
thanks for reply but i didnt understand it !!! 

Insert
Код

DecimalSeparator:=',';

between begin and end in the Project.pas

Автор: muratboy31 22.1.2010, 18:08
i did but it doesnt work !!!

Код

program Project1;

uses
  Forms,
  fmMain in 'fmMain.pas' {Form1},
  Unit2 in 'Unit2.pas' {Form2},
  Unit3 in 'Unit3.pas' {Form3},
  Unit4 in 'Unit4.pas' {Form4},
  Unit5 in 'Unit5.pas' {Form5},
  Unit6 in 'Unit6.pas' {Form6},
  Unit7 in 'Unit7.pas' {Form7};

{$R *.res}
 var
 DecimalSeparator : char;
begin
   Application.Initialize;
   Application.Title := 'Soft';
   DecimalSeparator:=',';
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Application.CreateForm(TForm3, Form3);
  Application.CreateForm(TForm4, Form4);
  Application.CreateForm(TForm5, Form5);
  Application.CreateForm(TForm6, Form6);
  Application.CreateForm(TForm7, Form7);
  Application.Run;

end.

Автор: Staruha 24.1.2010, 13:33
Код

program Project1;

uses

  SysUtils,Forms,
  fmMain in 'fmMain.pas' {Form1},
  Unit2 in 'Unit2.pas' {Form2},
  Unit3 in 'Unit3.pas' {Form3},
  Unit4 in 'Unit4.pas' {Form4},
  Unit5 in 'Unit5.pas' {Form5},
  Unit6 in 'Unit6.pas' {Form6},
  Unit7 in 'Unit7.pas' {Form7};

{$R *.res}
 begin
  DecimalSeparator:=',';
   Application.Initialize;
   Application.Title := 'Soft';
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Application.CreateForm(TForm3, Form3);
  Application.CreateForm(TForm4, Form4);
  Application.CreateForm(TForm5, Form5);
  Application.CreateForm(TForm6, Form6);
  Application.CreateForm(TForm7, Form7);
  Application.Run;

end.

Автор: Staruha 25.1.2010, 09:38
Еще скорее всего у тебя уже в программе есть данные с '.' их нужно заменить на данные с ','.

Автор: muratboy31 25.1.2010, 09:58
thanks for help but it didnt work again  smile 
i really dont understand !!!

Автор: Staruha 25.1.2010, 12:30
если я не могу найти где переменные не дружат,делаю так
...as string ->float

Автор: profesiachuvak 25.1.2010, 14:31
Цитата(muratboy31 @  25.1.2010,  09:58 Найти цитируемый пост)
i really dont understand !!! 

Try to change data with '.' to ','. 

Автор: huismori 26.1.2010, 00:18
i have the same problem

Автор: muratboy31 26.1.2010, 00:19
no it is still the same !!!
you can also try it... i have aleardy found 2 web sites making my app crash !!!

http://www.tatilvitrini.com/

and

http://cep-telefonu.gittigidiyor.com/Iphone-3G_Cep-Telefonu-Cihazlar_W0QQkatZZtcQQklmZZIphone%2B3GQQIS0_ZZQQsraZZhpaQQstrZZcatalogQQIS100_22ZZ4827&TumItemSpecs=1&CatLink=1

just make a small project with just a webbrowser object and load any of this sites and you will understand what i mean !!!  it doesnt give error with internet explorer but it gives error with delphi webbrowser !!!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)