Path: csiph.com!aioe.org!yBIfwlcYvPp0VbqA9SeaOg.user.46.165.242.75.POSTED!not-for-mail From: Kevin Wells Newsgroups: comp.sys.acorn.programmer Subject: Re: Problem returning from WGET from within an assembler prog Date: Sat, 09 Apr 2022 20:23:39 +0100 Organization: Aioe.org NNTP Server Lines: 50 Message-ID: <13d593d659.Kevin@Kevsoft> References: <59d5e28a96bob@sick-of-spam.invalid> <59d600739fbob@sick-of-spam.invalid> <6a8503d659.harriet@bazleyfamily.co.uk> <59d6672366bob@sick-of-spam.invalid> <59d68649a5bob@sick-of-spam.invalid> Injection-Info: gioia.aioe.org; logging-data="52766"; posting-host="yBIfwlcYvPp0VbqA9SeaOg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Messenger-Pro/8.05wpb1 (MsgServe/8.05) (RISC-OS/5.29) NewsHound/v1.52-32 X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com comp.sys.acorn.programmer:6351 In message <59d68649a5bob@sick-of-spam.invalid> Bob Latham wrote: >In article , > Steve Fryatt 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, > >Thanks again. > >Bob. > -- Kev Wells http://kevsoft.co.uk/ https://ko-fi.com/kevsoft carpe cervisium 24 hours in a day and 24 beers in a case. Hmmm..