cancel all messages doesn't work (8.1.1 rc1)

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

cancel all messages doesn't work (8.1.1 rc1)

Post by jmburnod » Sun Oct 16, 2016 10:10 am

Hi All,
I noticed that"cancel all messages" btn doesn't work.
Just use this to cancel all messages

Code: Select all

on stopAllPending 
   repeat for each line aLine in the pendingmessages
         cancel item 1 of aLine
   end repeat
end stopAllPending
Edit: same with 8.1.1 rc2

Best regards
Jean-Marc
https://alternatic.ch

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10050
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: cancel all messages doesn't work (8.1.1 rc1)

Post by FourthWorld » Sun Oct 16, 2016 12:26 pm

Did you file a bug report?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: cancel all messages doesn't work (8.1.1 rc1)

Post by jmburnod » Sun Oct 16, 2016 1:52 pm

Yes,
Bug 18616
Best
https://alternatic.ch

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: cancel all messages doesn't work (8.1.1 rc1)

Post by [-hh] » Tue Oct 18, 2016 10:36 pm

Hi Jean-Marc,

this is possibly not a bug.
'For each' enumerates top-down and may be not fast enough.

You could try the following (in some situations one may need even more 'outer' repeats than two):

Code: Select all

repeat 2
   repeat for each line aLine in the pendingmessages
         cancel item 1 of aLine
   end repeat
end repeat
Kind regards, Hermann
shiftLock happens

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10323
Joined: Wed May 06, 2009 2:28 pm

Re: cancel all messages doesn't work (8.1.1 rc1)

Post by dunbarx » Tue Oct 18, 2016 11:53 pm

Hermann.

I think Jean-Marc was saying that the loop solution worked all the time, but the "cancel..." btn at the bottom of the pendingMessages pane did not.

Craig

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: cancel all messages doesn't work (8.1.1 rc1)

Post by [-hh] » Wed Oct 19, 2016 1:56 am

Hi Craig.
They do it (already) this way in the palette:

Code: Select all

command cancelAllMessages
   local tPendingMessages, tMessage
   if lSelectedCard is not "Pending Messages" then exit cancelAllMessages
   
   put the cREVPendingMessages of me into tPendingMessages
   repeat for each line tMessage in tPendingMessages
      cancel item 1 of tMessage
   end repeat
  
   lock screen
   revIDEPendingMessagesRefresh
   disableFrameItem "cancelAll"
   unlock screen
end cancelAllMessages
As I said, this may be too slow. If you have for example a timer loop, say every 8 millisecs, then it's kind of a lottery to cancel it by one such loop . At least my animation examples need several such loops for a "STOP ALL".

Hermann
Sorry for the edit. Safari 10 kicks me out every 2 minutes.
shiftLock happens

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: cancel all messages doesn't work (8.1.1 rc1)

Post by jmburnod » Wed Oct 19, 2016 12:15 pm

Not sure I understand all comments
This bug is confirmed with comments you can see here
http://quality.livecode.com/show_bug.cgi?id=18616
Kind regards
Jean-Marc
https://alternatic.ch

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: cancel all messages doesn't work (8.1.1 rc1)

Post by [-hh] » Wed Oct 19, 2016 12:25 pm

Oh, I learn, this button doesn't work from several points of view.
Misunderstanding by me, sorry for that!
shiftLock happens

Post Reply