Page 1 of 2
Program Quits when going offline...
Posted: Sun Dec 02, 2012 3:18 am
by evil
Hello!
I just tried the following code:
bool=
IsOnline()
If bool=TRUE THEN Print ("Online") Else Print ("Offline")
waitevent
When starting, the program works correct.
But:
When I am online, before starting the code and go offline, while the program is running, then the program simply quits without any message.
I also noticed this with other Programs. For example Flipclock.
Why does this happen, and how can this be solved??
Greets
Jörg
Re: Program Quits when going offline...
Posted: Sun Dec 02, 2012 9:33 am
by Allanon
Hi evil,
you have to put your code in a loop to check what effectively happen:
Code: Select all
Local bool = IsOnline()
If bool
DebugPrint("You are connected!")
DebugPrint("Now try to disconnect from Internet...")
While bool
bool = IsOnline()
Wait(10)
Wend
EndIf
DebugPrint("You are offline!")
Re: Program Quits when going offline...
Posted: Sun Dec 02, 2012 11:56 am
by evil
I know, but that is not the problem.
Even if I put it into a loop. The Program quits, when I cut the internet-connection. Why??
Other Programs (for example Flip-Clock) have this problem, too.
Is there a chance to solve this??
Greeets
Jörg
Re: Program Quits when going offline...
Posted: Sun Dec 02, 2012 12:17 pm
by airsoftsoftwair
That's strange. What platform is this? Can you test it on some other platforms and see if the problem happens on all platforms or only on one?
Re: Program Quits when going offline...
Posted: Sun Dec 02, 2012 2:31 pm
by evil
Hello!
I am using Hollywood 5.2 On Os4.1.5
On WinUAE and under Windows, it works correctly. After a latency of 2 -3 seconds (while going offline) it displays the correct boolean Value.
Other derivates cannot be testet here!
Greets
Jörg
Re: Program Quits when going offline...
Posted: Sun Dec 02, 2012 2:38 pm
by airsoftsoftwair
Looks like a problem with OS4's TCP/IP stack then. Maybe it sends all processes a CTRL-C signal when going offline. Otherwise I can't think of anything that could cause Hollywood to quit when the TCP/IP stack goes offline...
Re: Program Quits when going offline...
Posted: Mon Dec 03, 2012 2:05 pm
by evil
Hi!
@Andreas:
You are right! It seems to be a problem with roadahow.
Even OWB and Jabberwocky quit, when I shutdown the internet-connection.
YAM AND IBrowsw dont...
GREETS
Jörg
Re: Program Quits when going offline...
Posted: Mon Dec 03, 2012 3:13 pm
by airsoftsoftwair
Please report this to Hyperion

Re: Program Quits when going offline...
Posted: Mon Dec 03, 2012 3:37 pm
by fingus
evil wrote:I know, but that is not the problem.
Even if I put it into a loop. The Program quits, when I cut the internet-connection. Why??
Other Programs (for example Flip-Clock) have this problem, too.
Is there a chance to solve this??
Greeets
Jörg
Do you mean actual Flipclock 53.1 Beta 3 on Os4depot.net?
If you mean Flipclock 1.1 forget it, it was using wget.
Re: Program Quits when going offline...
Posted: Tue Dec 04, 2012 12:35 pm
by evil
hello!
@fingus
I tried flipclock V53.1 Beta3 and got this problem...
I also tried wget 1.9.1, and it got a Break-signal. So the old flipclock-version will have problems under os4, too.
Isn't there any workaround in hollywood for that?
Why can It get and reckon these break-signals? Is it, because hollywood-execs are commodities? In this case, it may be possible to change the codes to not be commodities??
I'll send a bug-reort to hyperion!
Greets!!
Jörg