How to sort out this
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to sort out this
"Not Responding" is not, as you've found, "Not Working". It's merely the OS reporting that theapp isn't surrendering enough of its event loop for the OS to feel comfortable about the interaction.
In most cases it's actually fine, but the OS reporting that is disconcerting to users, so it isa bug, one the LC team is working on.
They may have addressed it. Have you tried the latest build?
In most cases it's actually fine, but the OS reporting that is disconcerting to users, so it isa bug, one the LC team is working on.
They may have addressed it. Have you tried the latest build?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 203
- Joined: Wed Jul 23, 2008 8:46 am
Re: How to sort out this
hi Richard,
yes I'm using the latest build of LC community version
also glad to know LC team is working to fix the 'Not Responding' thing while it goes through a large process !!
yes I'm using the latest build of LC community version
also glad to know LC team is working to fix the 'Not Responding' thing while it goes through a large process !!
Re: How to sort out this
Nah. The answer is, as always was and probably ever will be, include within the repeat loop the lineThis gives the engine a near zero duration pause, to take care of housekeeping processes and prevent the "not responding" appearance.
Code: Select all
wait 0 with messages
-
- Posts: 203
- Joined: Wed Jul 23, 2008 8:46 am
Re: How to sort out this
hi SparkOut,
will generate a new standalone with your idea for sure. thanks man
will generate a new standalone with your idea for sure. thanks man
Re: How to sort out this
Here's a version of bwmilby's handler that's a little simpler (because it uses booleans instead of counters) and therefore a little easier to read and a little faster (a few percent). And it showcases the new "difference" command.alemrantareq wrote: ↑Wed Jul 25, 2018 6:13 amhi rkriesel,
...
So bwmilby's script wins the race
Despite that, you and bwmilby both won my heart
Code: Select all
function singletonKeys tLines, pItemDelimiter -- tLines is a return-delimited list
local tKeys, tDuplicatedKeys
set the itemDelimiter to pItemDelimiter
repeat for each line tLine in tLines
get item 1 of tLine
if tKeys[ it ] then
put "true" into tDuplicatedKeys[ it ]
else
put "true" into tKeys[ it ]
end if
end repeat
split tLines with return and pItemDelimiter
difference tLines with tDuplicatedKeys
combine tLines with return and pItemDelimiter
return tLines
end singletonKeys
-- Dick
-
- Posts: 203
- Joined: Wed Jul 23, 2008 8:46 am
Re: How to sort out this
hi Dick,
just tried out the new code you made for me. Seems now much faster than the previous one, yet still couldn't bid bwmilby's code. Just took 1 sec more than his code
Well Done dear rkriesel and bwmilby, the effort you both given for me will never be forgotten
just tried out the new code you made for me. Seems now much faster than the previous one, yet still couldn't bid bwmilby's code. Just took 1 sec more than his code
Well Done dear rkriesel and bwmilby, the effort you both given for me will never be forgotten