Page 1 of 1

DownloadFile() - floating point exception

Posted: Thu Dec 20, 2012 5:17 pm
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.

Re: DownloadFile() - floating point exception

Posted: Fri Dec 21, 2012 2:55 pm
by airsoftsoftwair
Could you provide a very small test script that demonstrates the error?

Re: DownloadFile() - floating point exception

Posted: Sun Dec 30, 2012 11:20 pm
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.