SRL Archive - Help and Support

Form - Socket Error # 11004 Help.


BobboHobbo

2007-11-04 01:50:55

In my form, if you disconnect your internet and play my script and put any auth in, you get Socket Error # 11004 because it cant acess the page which i noticed.

I tried all this stuff like if it gets Socket Error # 11004 in the debug it will close the form and terminate script but its not working :llll

This is what im using.

for I := I to 100 do
if GetDebugLine(I) = 'Socket Error # 11004' then
begin
Result := True;
CloseFirstForm := True;
frmdesign.ModalResult := mrCancel;
Exit;
end else
Result := False;
end;

It works for the Acess error thing you get if you decline the connection to the website, but not for this -.-

BobboHobbo

2007-11-04 03:42:14

Bump * sorry, i really need this fixed.

R0b0t1

2007-11-04 12:11:26

It might just be your net. Can we see the whole script? Its not top-secret I hope.


Yeah… I have these problems with my threads too :p.

BobboHobbo

2007-11-04 15:48:02

Its my pay script :D how dare you ask to see it ;D, nah but that happens when your trying to connect to a script which connects to the internet when you have no internet connection, been testing alot.

R0b0t1

2007-11-04 16:16:41

Try restarting. :p

mastaraymond

2007-11-04 16:24:57

From: R0b0t1
Try restarting. :p

I made something like this.. First of all do this: Try except, this makes sure the code isn't going to crash.

And this is what i used, to see whether your "online".

if Length(GetPage('http://www.guimp.com/')) > 5 then
Online := True;
You could change it to your own url though, and increase the length a bit :).

R0b0t1

2007-11-04 16:58:16

I wouldn't use a new get page, just get the page once in a variable and compare it.


Saves time. But when did I start doing that?

mastaraymond

2007-11-04 17:09:12

From: R0b0t1
I wouldn't use a new get page, just get the page once in a variable and compare it.


Saves time. But when did I start doing that?


I just used the quote button because the reply button was to far away ^.^