www.virtualacorn.co.uk/forum

For support and advice on VirtualAcorn products
It is currently Sat Nov 01, 2014 12:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: User Message Numbers
PostPosted: Fri Feb 12, 2010 6:27 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
I have a number of Applications which communicate by Wimp_SendMessage.

What range of message numbers should I be using?

(I am currently using 1001 to 1099, which appear to work OK)

_________________
John


Top
 Profile  
 
 Post subject: Re: User Message Numbers
PostPosted: Fri Feb 12, 2010 8:13 pm 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
I think it would be best to ask RISCOS Ltd which message numbers are safe to use.

If it was me I would add some extra error checking and handshaking so that each of your apps can be 100% sure that the received message block is "genuine" and hasn't accidentally come from another app. If you wanted to go really mad you could always check the identity of the transmitting task to ensure that it has the
correct task name. If it doesn't then just ignore the block.

That way it should avoid any possible unwanted interactions.


Top
 Profile  
 
 Post subject: Re: User Message Numbers
PostPosted: Fri Feb 12, 2010 9:12 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
Aaron wrote:
I think it would be best to ask RISCOS Ltd which message numbers are safe to use.
Fair Point - I was hoping somebody here might know.

Aaron wrote:
If you wanted to go really mad you could always check the identity of the transmitting task to ensure that it has the correct task name.
Sort of do that.

Highly unlikely be be any unknown tasks running in my environment, in any case.

_________________
John


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group