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


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

Re: Clipboard fetching

Date 2012-04-20 23:09 +0100
From Matthew Phillips <spam2011m@yahoo.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Clipboard fetching
Message-ID <ac69948352.Matthew@sinenomine.freeserve.co.uk> (permalink)
References <63a3378152.Matthew@sinenomine.freeserve.co.uk> <c6efeb8252.martin@bach.planiverse.com> <a17dba65-dd1e-4e9c-85ba-06dd6a048544@i2g2000vbd.googlegroups.com>

Show all headers | View raw


In message <a17dba65-dd1e-4e9c-85ba-06dd6a048544@i2g2000vbd.googlegroups.com>
 on 20 Apr 2012 Gerph  wrote:

> On Apr 19, 4:29 pm, Martin Wuerthner <spamt...@mw-software.com> wrote:
> > In message <63a3378152.Matt...@sinenomine.freeserve.co.uk>
> >           Matthew Phillips <spam20...@yahoo.co.uk> wrote:
> >
> > > Would any clipboard owning task do anything with the window handle
> > > value other than copy it into the Message_DataSave for the reply? Might
> > > there be an application out there which used the window handle to
> > > determine where to send its replying Message_DataSave, rather than
> > > using the task handle of the task it received the Message_DataRequest
> > > from?
> >
> > Unfortunately, the protocol does not state where the reply should be
> > sent to, and since messages can be sent to windows or tasks, the
> > recipient could indeed choose to send it to the given window. The
> > usual meaning of "replying" to a message is to send the reply to the
> > sending task though, so that approach seems unlikely.
> 
> When replying to messages you should always reply to the sender field
> in the message block, unless the message explicitly requires you not
> to as part of its protocol. Doing anything other than that will break
> recorded delivery messages and in any case would prevent the sender
> from actually receiving the message.

So only the utterly paranoid programmer should worry about not putting a real
window handle in Message_DataSave.  I'm sure that paranoia ought to be a
virtue, along with laziness, hubris and whatever the other one is in
"Programming Perl".

I did think of a neat way round the messages getting grabbed by the wrong
handler, based on Martin's suggestion of looking at the your_ref field, but
as time is short and the application works with EasiWriter (the only software
worth testing with) I may make do with what I've got for the initial release!

Thank you, experts!

-- 
Matthew Phillips
Durham

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


Thread

Clipboard fetching Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-04-16 09:04 +0100
  Re: Clipboard fetching Martin Wuerthner <spamtrap@mw-software.com> - 2012-04-19 17:29 +0200
    Re: Clipboard fetching Gerph <gerph@gerph.org> - 2012-04-19 16:18 -0700
      Re: Clipboard fetching Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-04-20 23:09 +0100
        Re: Clipboard fetching Gerph <gerph@gerph.org> - 2012-04-21 01:18 -0700
          Re: Clipboard fetching Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-04-21 10:32 +0100
            Re: Clipboard fetching Gerph <gerph@gerph.org> - 2012-04-21 04:26 -0700
              Re: Clipboard fetching Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-04-22 00:56 +0100
            Re: Clipboard fetching Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-04-21 16:14 +0200
              Re: Clipboard fetching Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-04-22 00:54 +0100
                Re: Clipboard fetching Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-04-22 05:37 +0200
                Re: Clipboard fetching Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-04-22 05:42 +0200

csiph-web