Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Event queuing , callbacks and buttons
Date: Wed, 13 Feb 2008 19:27:05 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 21
Message-ID: <fovga9$8qb$1@canopus.cc.umanitoba.ca>
References: <forpl9$8cv$1@fred.mathworks.com> <fot632$pgq$1@fred.mathworks.com> <fot7fo$amv$1@canopus.cc.umanitoba.ca> <fov1ig$enp$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1202930825 9035 192.70.172.160 (13 Feb 2008 19:27:05 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Wed, 13 Feb 2008 19:27:05 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:451221



In article <fov1ig$enp$1@fred.mathworks.com>,
Johannes  <RudiRocker@gmx.net> wrote:

>I also thought of a solution like that but I think it's not
>a very nice one and has one main problem. My executing
>function invokes several other functions and also uses some
>toolboxes. So if I would like to implement that solution I
>would also have to implement it in the toolboxes, because
>they are the ones which need some time to execute.
>So I assume there isn't a possibility to control the
>callbacks in queue and cancel an executing function?

In a number of the internal Matlab functions, the ones
written in something other than Matlab, there are no checks
to see if the user (or anything else) has requested an interruption.
The only way to abort those time-consuming functions is to shoot
the entire Matlab process.
-- 
  "Beauty, like all other qualities presented to human experience,
  is relative; and the definition of it becomes unmeaning and
  useless in proportion to its abstractness." -- Walter Pater