It is currently Wed May 24, 2017 12:52 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  [ 24 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: GW V4.5 error
Unread postPosted: Fri Dec 09, 2016 10:56 am 
Offline

Joined: Sat Mar 02, 2013 11:04 am
Posts: 836
Location: France
Hello Nicolas,

Ooops ! BUG with this last GW v4.5 (no pb with the v4.4)

GRRR ! not upload ScreenShot.png file possible on the forum for now !!

The error text is :
" Bad control id: '21' in command GW_MODIFY().
Out of range (last control id is '0').
"

Gilles

_________________
"It is better to mobilize intelligence for stupid things, rather than mobilizing stupidity for intelligent things."
Galaxy TAB S 8.4, 2560x1600, Marshmallow 6.0.1
Galaxy Note II, 1280x720, JB4.1.2
Galaxy A3, 1280x720, Android 6.0.1


Top
 Profile  
 
 Post subject: Re: Announcing GW: a GUI-lib to easily create apps!
Unread postPosted: Fri Dec 09, 2016 10:58 am 
Offline
User avatar

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

care to share the incriminated program please? ;)

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing GW: a GUI-lib to easily create apps!
Unread postPosted: Fri Dec 09, 2016 11:19 am 
Offline

Joined: Sat Mar 02, 2013 11:04 am
Posts: 836
Location: France
Sorry Nicolas but it is actually impossible to upload anything on the forum. As soon it's possible I'll upload my code...

But the most important for me is the information that there's no pb with your GW.bas v4.4 ;)

Gilles

_________________
"It is better to mobilize intelligence for stupid things, rather than mobilizing stupidity for intelligent things."
Galaxy TAB S 8.4, 2560x1600, Marshmallow 6.0.1
Galaxy Note II, 1280x720, JB4.1.2
Galaxy A3, 1280x720, Android 6.0.1


Top
 Profile  
 
 Post subject: Re: Announcing GW: a GUI-lib to easily create apps!
Unread postPosted: Fri Dec 09, 2016 11:28 am 
Offline

Joined: Wed Feb 20, 2013 3:25 pm
Posts: 423
Location: Italy
Hi Gilles,

you could upload the code to laughton ftp or copy-paste a snippet here.

/ L


Top
 Profile  
 
 Post subject: Re: Announcing GW: a GUI-lib to easily create apps!
Unread postPosted: Fri Dec 09, 2016 12:39 pm 
Offline

Joined: Wed Feb 20, 2013 3:25 pm
Posts: 423
Location: Italy
Gilles,

A suggestion for debugging: in your code include from time to time ?GW_KEY_IDX("control") and try to understand how and why this value gets to 0 (it should not if you have controls on the pages).

/ L


Last edited by luca_italy on Fri Dec 09, 2016 3:10 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Announcing GW: a GUI-lib to easily create apps!
Unread postPosted: Fri Dec 09, 2016 2:06 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
You already understood the new functions very well Luca ;)

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing GW: a GUI-lib to easily create apps!
Unread postPosted: Sat Dec 10, 2016 2:45 am 
Offline

Joined: Sat Mar 02, 2013 11:04 am
Posts: 836
Location: France
Hello guys,
[quote="mougino"]You already understood the new functions very well Luca ;)

Nicolas

Or Luca learned by heart all the contents of GW.bas :lol: :lol: ( I didn't see GW_KEY_IDX("control") in the last Cheatsheet )

More seriously when you run a code with a GW version and it work well then only the GW version changes (and not any word in my code) and the program crashes, please be honest : what comes to your mind first ?

Still no possibility to upload any file on the forum this morning :evil: :evil:

I put my code here : http://laughton.com/basic/programs/applications/DataPass/

My code have 535 lines and 14 GW_MODIFY() well distributed...
Code:
Search "GW_MODIFY" (14 hits in 1 file)
  C:\_Tablette\_RFO Basic!\_PROGRAMMES\BDDC\--DbCr_0912.bas (14 hits)
   Line 47: GW_MODIFY (cl_id, "text", "Tapez le Mot de Passe SVP")
   Line 58:   GW_MODIFY (cl_id, "text", vue$)
   Line 153:     GW_MODIFY (ti, "rmenu", int$(1))    % toujours voir "Menu" : ne fonctionne pas !!!
   Line 206:   GW_MODIFY (ti, "lbutton", he$+":"+mn$)
   Line 253: GW_MODIFY (sb_cat_filter, "selected", int$(act))
   Line 324: GW_MODIFY (date_selector, "input", dt$)       % toute la fiche courrante (même vierge) champ par champ.
   Line 326: GW_MODIFY (sh_cat_chosen, "selected", int$(newcat))
   Line 327: GW_MODIFY (obj, "input", ob$)
   Line 328: GW_MODIFY (log, "input", lg$)
   Line 329: GW_MODIFY (pwd, "input", pw$)
   Line 330: GW_MODIFY (cmt, "input", ct$)
   Line 379: GW_MODIFY (sb_cat_filter, "selected", int$(act))
   Line 445:     GW_MODIFY (ajo, "input", c$)
   Line ***:     GW_MODIFY (idg, "input", c$)

I do not ask anyone to debug my code, but just to Nicolas to see if the new GW v4.5 is reliable or explain if there is a new way to use it?
For the moment I stay with the GW v4.4

Gilles.
_________________
"It is better to mobilize intelligence for stupid things, rather than mobilizing stupidity for intelligent things."
Galaxy TAB S 8.4, 2560x1600, Marshmallow 6.0.1
Galaxy Note II, 1280x720, JB4.1.2
Galaxy A3, 1280x720, Android 6.0.1


Last edited by Cassiope34 on Sat Dec 10, 2016 11:17 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Announcing GW: a GUI-lib to easily create apps!
Unread postPosted: Sat Dec 10, 2016 3:47 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
Gilles, there is a big architecture change in GW 4.5 to get rid of lists.
Nobody said it was safe.
What does a change log in red with a warning button tell you ?
I'll debug your big program when I have free time but to be honest with you maybe I will prefer go to the park with my son and enjoy the sunny weather.
Worst case scenario I will revert my changes and continue using lists in GW with the proper warning.

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: GW V4.5 error
Unread postPosted: Sat Dec 10, 2016 5:00 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
I moved the discussion out to avoid polluting the announcement. Let's continue here.

I tested your program.
The error comes in the second screen.
To reproduce, type a code in the first screen, hit ok, then when you arrive in the second screen, do nothing.
The error arrives after 10 seconds, when the ONTIMER: triggers to update the time in the titlebar.

I did some quick tests: it seems bundle #1 is empty in the GW_KEY_IDX() function when called from ONTIMER: (!!)

This is a very odd problem, it should never occur, this is a bad behavior of RFO BASIC! itself that is way beyond my skills to fix.

So I will do what I said: I will revert back to using lists in GW.
Users will have to be aware of the risk of existing global lists, but there's even more risk staying with a randomly disappearing bundle #1 !

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: GW V4.5 error
Unread postPosted: Sat Dec 10, 2016 6:14 am 
Offline

Joined: Wed Feb 20, 2013 3:25 pm
Posts: 423
Location: Italy
to isolate the bug let's try to create a short basic snippet which corrupts bundle 1 in ontimer.

L


Last edited by luca_italy on Sat Dec 10, 2016 6:28 am, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2, 3  Next


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