DownloadFile() - floating point exception

Report any Hollywood bugs here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

DownloadFile() - floating point exception

Post by djrikki »

Okay, I've encountered a significant problem with Jack compiled for MacOSX.

Firstly the error log given in Terminal:

Code: Select all

Last login: Thu Jun 16 05:36:54 on console
/Volumes/shared/Lake\ Marketing\ and\ Events/Coding/Jack/Jack_MacOSX/Jack_MacOSX.app/Contents/MacOS/Jack_MacOSX ; exit;
You have new mail.
iMac:~ richardlake$ /Volumes/shared/Lake\ Marketing\ and\ Events/Coding/Jack/Jack_MacOSX/Jack_MacOSX.app/Contents/MacOS/Jack_MacOSX ; exit;
1
2
3
3.1
3.2
3.3.1
3.3.1.1
3.3.1.2
3.3.2.2.2
URL: http://www.lakemarketingandevents.co.uk/jack/tradedoubler_links.txt
save to: temp/env/tdlinks
Floating point exception
logout

[Process completed]
I've pinpointed the 'floating point exception' down to the following line of code:

Code: Select all

handle, count = DownloadFile(url, {File = savefile, Fail404 = True, SilventFail = True} )
'url' is shown in the log file, 'savefile' is shown on the line below it.

I might go away and try and give an absolute path, the path given above is relative to the 'Resources' folder of a MacOS X package and works in other instances of usage.

The very same code works fine under AmigaOS4.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DownloadFile() - floating point exception

Post by airsoftsoftwair »

Could you provide a very small test script that demonstrates the error?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: DownloadFile() - floating point exception

Post by djrikki »

Oooh just spotted you are online.

I tried a code snippet and the same fatal error is not shown. All arguments I am supplying to the command are valid, requires further investigation.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply