10-15-2021, 09:22 PM
(10-13-2021, 11:32 PM)mark_talluto Wrote:(10-13-2021, 09:28 PM)Hendricus Wrote: I am having the same issues when using LiveCode 9.6.3 with android. But when trying with LiveCode 9.6.5 (rc 1) it doesn't even get to the cdb_auth in my login script. I get an error trying to start up when testing the app on my android phone connected via USB.
Quote:We encountered an error while initializing CanelaDB: 573,33,1,tsNetLibUrlReuseConnection
253,33,1241,30,1,libraryStack
353,0,0,stack "/data/app/~~6iGhweJfYfAE3UYYJfopSw==/com.dricus.jobstarpro-7iYWRkhHuLf3no--Zbyzeg==/base.apk/CanelaDB/libraries/CDB_Starter.lib"
Am I overlooking anything? Any hints and tips are welcome.
Hi Hendricus,
I think going with LC 9.6.5, and newer is required when doing Android builds.
Did you include tsNet in your inclusions in the standalone builder?
(10-15-2021, 06:22 PM)mark_talluto Wrote: Hi Hendricus,
Your desktop LiveCloud error is different from your LiveCode tsNet error.
Your app is calling the initializeCanelaDB handler as it should. But, your path to the libraries is not correct. The supplied pathing code assumes the location of your CanelaDB folder. If your folder is not where we guessed, you need to update the pathing code. To solve the problem, try dropping a breakpoint in your init code to determine if the supplied pathing code needs to be modified.
Once you change the code a bit, your libraries will load correctly. I do not have much to offer in regards to the fullscreenmodes for mobile devices. I have not used that feature in any of our work. There is a forum post about this topic on the LiveCode Forums here: https://forums.livecode.com/viewtopic.ph...16#p209616
-Mark
Hi Mark,
I have narrowed it down to the bit below:
Code:
--START CanelaDB
csi_verifyLibraries tLibraryPath
try
start using stack (tLibraryPath & "CDB_Header.lib")
answer "breakpoint 1" with "OK"
start using stack (tLibraryPath & "CDB_Starter.lib")
answer "breakpoint 2" with "OK"
catch tError
answer "We encountered an error while initializing CanelaDB:" && tError
exit to top
end try
When executing this with LiveCode 9.6.3 all runs fine on the iOS Simulator. I get passed breakpoint 2 and the login card is rendered perfectly, so the pathing works fine and the CDB_Starter.lib is used fine under LiveCode 9.6.3.
But when executing this with LiveCode 9.6.5 RC-1 it does reach breakpoint 1 (so the pathing seems to be fine still), but it doesn't get to breakpoint 2. It throws the error I reported earlier. So, somehow CDB_Starter.lib goes wrong with this latest LiveCode version.