Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6352

Re: Problem returning from WGET from within an assembler prog

From David Higton <dave@davehigton.me.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Problem returning from WGET from within an assembler prog
Date 2022-04-09 22:29 +0100
Organization Home
Message-ID <44569fd659.DaveMeUK@BeagleBoard-xM> (permalink)
References (3 earlier) <6a8503d659.harriet@bazleyfamily.co.uk> <59d6672366bob@sick-of-spam.invalid> <mpro.ra2pxr01s2b8u07k5.news@stevefryatt.org.uk> <59d68649a5bob@sick-of-spam.invalid> <13d593d659.Kevin@Kevsoft>

Show all headers | View raw


In message <13d593d659.Kevin@Kevsoft>
          Kevin Wells <kev@kevsoft.co.uk> wrote:

> In message <59d68649a5bob@sick-of-spam.invalid>
>          Bob Latham <bob@sick-of-spam.invalid> wrote:
> 
> > In article <mpro.ra2pxr01s2b8u07k5.news@stevefryatt.org.uk>,
> >   Steve Fryatt <news@stevefryatt.org.uk> wrote:
> > > On 9 Apr, Bob Latham wrote in message
> > >     <59d6672366bob@sick-of-spam.invalid>:
> > 
> > > > 'Invalid Wimp operation in this context.'
> > 
> > > Ah. Wimp_StartTask must be called from a Wimp application which is
> > > already calling Wimp_Poll.
> > 
> > > I think your options are either to look at the Arthur way of doing
> > > stuff (fiddle with the environment and shift things around in memory)
> > > or do without WGet.
> > 
> > > If you're using RISC OS 5, could you use the built-in HTTP fetcher? As
> > > a module called by SWIs, that might run as part of your application (I
> > > don't know; I've not looked at how it works, so I'm not sure if it
> > > expects to be called from a polling application or not). If so, that
> > > would sidestep the problem of launching a separate task to do the
> > > fetching.
> > 
> > Thanks Steve.
> > 
> > I did look into that but quickly realised this is beyond my baby steps.
> > 
> > Must admit, it surprises me that fetching a file from the net is so
> > difficult to do.
> 
> From BASIC wget is easy to fetch files from the internet I use the
> followiong:
> 
> SYS "Wimp_StartTask", "wget ...
> 
> Whilst fetching the computer is single tasking,

Similarly, my UpdCaCert app launches curl by means of Wimp_StartTask,
and the resukt single-tasks for a few seconds.

So it's not difficult, really, but you do need to know some important
bits of information.  One is that you can't do Wimp operations except
from a registered Wimp task; another is that, in most cases, you can't
just do *OSCLI for an app because the new app will wipe out the app that
launched it.

David

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-08 12:07 +0100
  Re:Problem returning from WGET from within an assembler prog Steve Drain <steve@kappa.me.uk> - 2022-04-08 13:08 +0100
    Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-08 17:33 +0100
      Re: Problem returning from WGET from within an assembler prog Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-04-08 18:07 +0100
        Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-08 20:05 +0100
        Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-09 12:15 +0100
          Re: Problem returning from WGET from within an assembler prog Steve Fryatt <news@stevefryatt.org.uk> - 2022-04-09 14:10 +0100
            Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-09 17:55 +0100
              Re: Problem returning from WGET from within an assembler prog Kevin Wells <kev@kevsoft.co.uk> - 2022-04-09 20:23 +0100
                Re: Problem returning from WGET from within an assembler prog David Higton <dave@davehigton.me.uk> - 2022-04-09 22:29 +0100
                Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-10 09:38 +0100
                Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-10 09:36 +0100
                Re: Problem returning from WGET from within an assembler prog Kevin Wells <kev@kevsoft.co.uk> - 2022-04-10 13:05 +0100
                Re: Problem returning from WGET from within an assembler prog Kevin Wells <kev@kevsoft.co.uk> - 2022-04-11 18:09 +0100
              Re: Problem returning from WGET from within an assembler prog Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-04-10 13:01 +0100
                Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-10 13:36 +0100
                Re: Problem returning from WGET from within an assembler prog druck <news@druck.org.uk> - 2022-04-11 13:59 +0100
          Re: Problem returning from WGET from within an assembler prog Theo <theom+news@chiark.greenend.org.uk> - 2022-04-09 14:15 +0100
            Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-09 17:56 +0100
      Re: Problem returning from WGET from within an assembler prog Steve Fryatt <news@stevefryatt.org.uk> - 2022-04-08 19:15 +0100
        Re: Problem returning from WGET from within an assembler prog Bob Latham <bob@sick-of-spam.invalid> - 2022-04-08 20:07 +0100

csiph-web