It is currently Thu Jun 22, 2017 1:22 pm



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  [ 156 posts ]  Go to page Previous  1 ... 9, 10, 11, 12, 13, 14, 15, 16  Next
Author Message
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Thu Jun 23, 2016 6:38 pm 
Offline

Joined: Wed May 04, 2016 6:09 pm
Posts: 71
Not sure why some of my graphs are crashing unpredictably... maybe stack overflows from SQLITE calls or a memory leak from not clearing a bundle?
Anyways, I put my SQLITE database and user data on the FTP server so you can play around with the graphs if you want to.. just copy everything from the /data and /databases directories into the /Calorie Confessor or wherever you have your voCal app stored on your phone.

No razzin' me on the crap I still eat though :)

UPDATE: I am pretty sure most of the crashes were caused by bad FN.RTN's inside of DO-UNTIL loops.... I keep forgetting!


Last edited by cterp2 on Tue Jun 28, 2016 6:01 pm, edited 1 time in total.

Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Tue Jun 28, 2016 5:57 pm 
Offline

Joined: Wed May 04, 2016 6:09 pm
Posts: 71
I ditched the GR mode keyboard and instead made a simple HTML one... not sure why the bottom row of
buttons doesn't line up exactly right but it works well.. No more flickering when switching modes for goal and calorie entries


Attachments:
2016-06-28 18.01.03.png
2016-06-28 18.01.03.png [ 35.76 KiB | Viewed 338 times ]
Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Thu Jun 30, 2016 5:21 pm 
Offline

Joined: Wed May 04, 2016 6:09 pm
Posts: 71
Hmmm.... I do seem to crash a lot when running memory intensive graphs.. I have gotten a few "Low Memory" warnings and it seems to improve
when I replaced the HTML asklist$ menu with a DIALOG.SELECT so I am thinking SQLITE might be eating up space and/or there is some serious glitch in my
HTML. I think I'll upgrade my wife's "pink" version and see what happens. Not really sure if the query cursor gets released from memory inside a function. I will see if I can get it to crash on my wife's data.


Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Tue Jul 05, 2016 3:25 am 
Offline

Joined: Wed May 04, 2016 6:09 pm
Posts: 71
Doing a GRABFILE is much faster than TEXT.OPEN:TEXT.READLN:TEXT.CLOSE
Much zippier now - it now switches days on my phone in about a tenth of a second.

I still have a bit of a memory leak somewhere in the graphs I think.


Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Tue Jul 05, 2016 3:26 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5537
Location: Paris, France
How about BYTE.OPEN, BYTE.READ.BUFFER? (ans use FILE.SIZE before to know what size of buffer to read)

_________________
- Creator of the Android BASIC! Compiler


Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Tue Jul 05, 2016 2:04 pm 
Offline

Joined: Wed May 04, 2016 6:09 pm
Posts: 71
Thanks Nicholas!.. I think that is much faster.. Shaved about 10-20% off the main screen load time.


Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Tue Jul 05, 2016 8:23 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5537
Location: Paris, France
There are at least 2 extraneous "h" in your post ;)

_________________
- Creator of the Android BASIC! Compiler


Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Thu Jul 07, 2016 6:50 pm 
Offline

Joined: Wed May 04, 2016 6:09 pm
Posts: 71
Nicholas- which post was that?

I did some more benchmarking today and am really not sure that the BYTE.READ is much faster than GRABFILE.. I went back to
using GRABFILE for now.

Today I found the source of my graph crashes:
I was using SQL.QUERY.LENGTH and a for-next loop instead of the SQL.NEXT done flag with a do-until loop.. Turns out there
appears to be a memory leak somewhere with the SQL.QUERY.LENGTH because it would crash the app even if I just called LENGTH without
even doing the SQL.NEXT part. Much more stable now..


Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Thu Jul 07, 2016 10:17 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5537
Location: Paris, France
cterp2 wrote:
Nicholas- which post was that?


Thanks Nicholas!.. I think that is much faster.. Shaved about 10-20% off the main screen load time.

_________________
- Creator of the Android BASIC! Compiler


Report this post
Top
 Profile  
 
 Post subject: Re: Calorie Confessor Food Diary
Unread postPosted: Fri Jul 08, 2016 8:56 am 
Offline
User avatar

Joined: Thu Jan 08, 2015 11:28 am
Posts: 1088
Location: .NET
mougino wrote:
cterp2 wrote:
Nicholas- which post was that?


Thanks Nicholas!.. I think that is much faster.. Shaved about 10-20% off the main screen load time.


what's wrong with shaving time off? :P

_________________
https://github.com/evolbug
http://toobasic.jimdo.com


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 156 posts ]  Go to page Previous  1 ... 9, 10, 11, 12, 13, 14, 15, 16  Next


Who is online

Users browsing this forum: No registered users and 0 guests


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