It is currently Tue May 30, 2017 4:00 am



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Error in Update Check
Unread postPosted: Sat Dec 03, 2016 2:03 pm 
Offline
User avatar

Joined: Wed Jul 10, 2013 8:11 am
Posts: 328
Hi Nicolas,

In line 3612 of GW.bas
BYTE.OPEN w, fid, sys$ : BYTE.WRITE.BUFFER fid, y$+m$+d$ : BYTE.CLOSE fid % update last time checked

I get the error:
Invalid File Number at
byte.write.bufferfid,y$+m$+d$

It seems, that writing to ?*"../"+"data/data/com.rfo.basic/gw_last_check" is not permitted on my device.

If I deactivate this line, it runs fine.

My suggestion:
Change the path to
FILE.ROOT r$ : r$ + "/gw/gw_last_check"

Gregor


Top
 Profile  
 
 Post subject: Re: Error in Update Check
Unread postPosted: Sat Dec 03, 2016 4:42 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
Hi Gregor,

Thanks for the report!

You will get that error if you run the GW lib in an Editor other than com.rfo.basic indeed.

I guess you are running it from my test version com.rfo.basictest ?

When official BASIC! v01.91 is out I will be able to use PROGRAM.INFO "SysPath" to get it right from wherever GW.bas is called.
Until then I'll have to use a fix as you propose...

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Error in Update Check
Unread postPosted: Sat Dec 03, 2016 4:56 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
The irony is that now that the auto-update mechanism is broken I won't be able to push the fixed GW.bas to users of com.rfo.basictest ;)

You'll have to use com.rfo.basic (official BASIC!) to receive it (and in your case also uncomment the line you commented).

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Error in Update Check
Unread postPosted: Sat Dec 03, 2016 5:00 pm 
Offline
User avatar

Joined: Wed Jul 10, 2013 8:11 am
Posts: 328
mougino wrote:
Hi Gregor,

Thanks for the report!

You will get that error if you run the GW lib in an Editor other than com.rfo.basic indeed.

I guess you are running it from my test version com.rfo.basictest ?

When official BASIC! v01.91 is out I will be able to use PROGRAM.INFO "SysPath" to get it right from wherever GW.bas is called.
Until then I'll have to use a fix as you propose...

Nicolas


I run GW with your newest release, too. The same result :!:

Gregor


Top
 Profile  
 
 Post subject: Re: Error in Update Check
Unread postPosted: Sat Dec 03, 2016 5:13 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
yes but compiled with what package name? ;)

I'll come up with a path that does not rely on the package name.

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Error in Update Check
Unread postPosted: Sat Dec 03, 2016 5:51 pm 
Offline
User avatar

Joined: Wed Jul 10, 2013 8:11 am
Posts: 328
"com.rfo.basicTest" instead of "com.rfo.basic"

Shame on me :oops: :oops: :oops: :oops:

Gregor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred