Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #1058
| From | Dave Higton <davehigton@dsl.pipex.com> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: TaskWindow launch an app and get its output |
| Date | 2011-11-22 17:07 +0000 |
| Organization | Home |
| Message-ID | <e049393652.davehigton@dsl.pipex.com> (permalink) |
| References | <9d722e3152.davehigton@dsl.pipex.com> <e104c9d7-5a33-4dc2-9392-a3fd2a4736da@q16g2000yqn.googlegroups.com> |
In message
<e104c9d7-5a33-4dc2-9392-a3fd2a4736da@q16g2000yqn.googlegroups.com>
Gerph <gerph@gerph.org> wrote:
> On Nov 12, 10:07 pm, Dave Higton <davehig...@dsl.pipex.com> wrote:
> > I'd like to get a task running in a TaskWindow to launch an Absolute
> > application, and transfer some data from or to it via a dynamic
> > area.
> >
> > I've claimed the DA OK. I've launched the Absolute file using
> > Wimp_StartTask. It completes (very quickly). However, all
> > subsequent output from the original TaskWindow app seems to be
> > on the top line (Zap on a BBxM) of the TaskWindow.
> >
> > Any ideas/suggestions?
>
> This sounds like you're being hit by a problem in earlier versions of
> the TaskWindow module which were caused by the Wimp's setup of a
> Command Window in order to ensure that the subsequently run command
> will be able to read the window size correctly. As you're inside a
> TaskWindow it captures this output stream and sends it to the
> controlling application. !Zap, understanding the control sequences,
> applies a window (albeit not the one that was expected) and you end up
> with a strange result.
>
> Using Wimp_StartTask from within a TaskWindow is unsafe prior to
> TaskWindow version 0.72 on the Select versions (when used with
> WindowManager 5.09), due to pre-emption problems beyond the issues you
> describe above. http://select.riscos.com/prm/desktop/taskwindow.html
> has a paragraph (which says not much more than the above). The fixes
> for the pre-emption problem also address the above Command Window
> issues, as they ensure that the new-born task is no longer within the
> TaskWindow's control by the time the context is initialised by the
> Wimp_CommandWindow call.
>
> If you wish to invoke a task from within a TaskWindow on a modern
> version of the OS, use TaskManager_StartTask which doesn't allow you
> access to the Task handle, but then you couldn't reliably use it
> within your original TaskWindow in any case. This said, however, you
> will need to be careful to remove the dynamic area should your second
> task not start successfully, and - of course - any invocation of a
> task may result in an error box which requires user intervention to
> clear.
Very interesting, Justin, and thanks for your reply: informative as
always.
*Help Taskwindow tells me it's version 0.73 (04 Aug 2011), and it's
running under RO 5.17 built from sources from a few weeks ago. I
guess the RO5 and Select versions differ in their behaviour - Select
fixed a bug that's still in the ROOL version?
Dave
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-12 22:07 +0000
Re: TaskWindow launch an app and get its output druck <news@druck.org.uk> - 2011-11-14 19:40 +0000
Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-19 22:45 +0000
Re: TaskWindow launch an app and get its output druck <news@druck.freeuk.com> - 2011-11-19 23:49 +0000
Re: TaskWindow launch an app and get its output Thomas Milius <Thomas-Milius@t-online.de> - 2011-11-20 11:48 +0100
Re: TaskWindow launch an app and get its output Erik G <erikg@noname.invalid> - 2011-11-16 16:53 +0100
Re: TaskWindow launch an app and get its output Martin Wuerthner <spamtrap@mw-software.com> - 2011-11-16 17:29 +0100
Re: TaskWindow launch an app and get its output James Lampard <dontreplytothis@mailinator.com> - 2011-11-18 03:35 -0800
Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-19 22:14 +0000
Re: TaskWindow launch an app and get its output druck <news@druck.freeuk.com> - 2011-11-19 23:44 +0000
Re: TaskWindow launch an app and get its output James Lampard <dontreplytothis@mailinator.com> - 2011-11-20 02:39 -0800
Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-20 14:56 +0000
Re: TaskWindow launch an app and get its output James Lampard <dontreplytothis@mailinator.com> - 2011-11-25 09:24 -0800
Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-25 21:00 +0000
Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-27 13:56 +0000
Re: TaskWindow launch an app and get its output "Ste (news)" <steve@revi11.plus.com> - 2011-12-20 13:48 +0000
Re: TaskWindow launch an app and get its output Gerph <gerph@gerph.org> - 2011-11-20 05:09 -0800
Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-22 17:07 +0000
csiph-web