Executing livecode program in different os.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Executing livecode program in different os.
Hi,
A livecode program (test.livecode) execute fine in linux os, but the execution of the same program takes too much time in mac os. How this occur?. How can we solve this problem?
Thanks,
Samjith.
A livecode program (test.livecode) execute fine in linux os, but the execution of the same program takes too much time in mac os. How this occur?. How can we solve this problem?
Thanks,
Samjith.
Re: Executing livecode program in different os.
Hi Samjith,
1. welcome to the forum!
2. Unfortunately our crystal bowl is in the workshop, so we MAY need a liitle more info
about what exactly your stack does to be able to even guess what might be the problem!
Best
Klaus
1. welcome to the forum!

2. Unfortunately our crystal bowl is in the workshop, so we MAY need a liitle more info
about what exactly your stack does to be able to even guess what might be the problem!

Best
Klaus
Re: Executing livecode program in different os.
I think it is due to the Progress Scrollbar. When i hide the code about the progress scrollbar, it works as like Linux os. But the code are same in linux and mac os.
Re: Executing livecode program in different os.
Aha!
But since this not very enlightening, my number #2 still applies
Please post the script(s) that will progress the progress bar, there must be the cause of the problem!
And please use the CODE tags above after pasting the script, so it remains readable, thanks.
But since this not very enlightening, my number #2 still applies

Please post the script(s) that will progress the progress bar, there must be the cause of the problem!
And please use the CODE tags above after pasting the script, so it remains readable, thanks.
Re: Executing livecode program in different os.
Iam using the following code.
Samjith.
Thanks,set the visible of scrollbar "Progress Scrollbar" to true
put 0 into Scrollbarcounter
repeat for each line theLine in myWordList
add 1 to Scrollbarcounter
set the thumbPosition of scrollbar "Progress Scrollbar" to Scrollbarcounter
end repeat
set the visible of scrollbar "Progress Scrollbar" to false
Samjith.
Re: Executing livecode program in different os.
Hmmmm, since you do not even process theLine in the repeat loop, this should be lightning fast on the Mac, too!?
Sorry, no brilliant idea in the moment...
Sorry, no brilliant idea in the moment...
Re: Executing livecode program in different os.
On OS X, I think LiveCode calls out to the OS to draw the scrollbar which is a time consuming operation. To reduce the lag it is normal to only update the thumb position at intervals. Try starting with mod 10 and adjust it from there.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com