Standalone riddle
Ralph DiMola
rdimola at evergreeninfo.net
Sun Jan 15 15:44:31 EST 2023
I'd be interested to see if what difference there is between the test apk
and the standalone builder apk. This has me a bit worried. If you want to
send me the 2 apks I will dive in and see at least what file(s) are
different.
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Saturday, January 14, 2023 6:25 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: Standalone riddle
On 1/14/23 1:55 AM, Geoff Canyon via use-livecode wrote:
> This doesn't solve the puzzle, but: use a stack property to store the
> value instead?
The value is entered correctly and displays after I dismiss the error
dialog. I have finally found where the issue is, but I don't know why it
happens. The normal sequence is pretty simple:
1. Enter a search term and hit the return key on the virtual keyboard. This
triggers the inputReturnKey message.
2. InputReturnKey calls handler doSearch, which looks up the definition,
populates a browser widget on card 2, and goes to card 2.
What is happening is that inputReturnKey is being sent twice. The first time
it works as expected, but the second time we are already on card 2 and the
controls on card 1 are no longer available. Ergo, I get the "no such object"
error. I found this by inserting "checkCd the params" at the beginning of
doSearch. CheckCd does this:
on checkCd pParams -- track inputReturnKey error
put pParams &cr&cr into tData -- the calling handler params
put the executionContexts after tData
answer tData
end checkCd
...and I got two dialogs in a row. I could see card 2 behind the second one,
which was a debug errorDialog instead of an answer dialog.
So the burning question is why does a single tap on the return key send two
duplicate inputReturnKey messages, and why does that happen only in a built
standalone?
Maybe I won't embarrass myself if I enter a bug report now.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list