By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Service Communication Issues.

P: n/a
Hey all.
Help!!

I am trying to create a windows service that will have an
array of data that can be accessed at any given time, as
well as have a stream of data from it.

My question is: How would I go about sharing an array
accross two separate programs with out using tcp. Is tcp
ideal? Would a message queue be ideal for streaming data?
I can't just send the reference of the array to the
program, could I?

(I think I got a little too use to assembly on
microprocessors where one could do anything.)

thanks for all help.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The absolute simplest way of doing this with .NET is to use remoting.
Remoting doesn't have to be cross-machine; it can mean simply cross-process
(or app domain). If you create a type on a service that supports remoting
then a simple tweak to the .config file of your other apps will create the
object via the transport transparently.

I'd suggest getting one of the excellent .NET remoting books, like Ingo
Rammer's. They all include code to get you started.
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"GrainFed" <an*******@discussions.microsoft.com> wrote in message
news:2e*****************************@phx.gbl...
Hey all.
Help!!

I am trying to create a windows service that will have an
array of data that can be accessed at any given time, as
well as have a stream of data from it.

My question is: How would I go about sharing an array
accross two separate programs with out using tcp. Is tcp
ideal? Would a message queue be ideal for streaming data?
I can't just send the reference of the array to the
program, could I?

(I think I got a little too use to assembly on
microprocessors where one could do anything.)

thanks for all help.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.