473,326 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Remoting question....

OK, so I'm new to .Net remoting and I have a couple of questions.

What is the context of the object being hosted? Like, if my object is
coded to run a Win32 API and get system metrics and report them back
through a simple function call. To keep it simple, let's say we are
getting the max screen resolution. And, we code a simple function to do
that. And we place this as the sole function in our object that we will
make available to remote clients.

When a remote client attaches to our object and calls the function will the
max screen resolution returned be for the client's screen or the host's
screen?

I guess I am asking what context the object will run in if marshalled by
reference and what context if marshalled by value.

Thanks for your help!
Jul 21 '05 #1
4 840
The code executes in the context of the machine that functions as a server.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/
"Joe Coder" <Jo********@hotmail.com> wrote in message
news:1c*****************************@40tude.net...
OK, so I'm new to .Net remoting and I have a couple of questions.

What is the context of the object being hosted? Like, if my object is
coded to run a Win32 API and get system metrics and report them back
through a simple function call. To keep it simple, let's say we are
getting the max screen resolution. And, we code a simple function to do
that. And we place this as the sole function in our object that we will
make available to remote clients.

When a remote client attaches to our object and calls the function will the max screen resolution returned be for the client's screen or the host's
screen?

I guess I am asking what context the object will run in if marshalled by
reference and what context if marshalled by value.

Thanks for your help!

Jul 21 '05 #2
The code executes in the context of the machine that functions as a server.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/
"Joe Coder" <Jo********@hotmail.com> wrote in message
news:1c*****************************@40tude.net...
OK, so I'm new to .Net remoting and I have a couple of questions.

What is the context of the object being hosted? Like, if my object is
coded to run a Win32 API and get system metrics and report them back
through a simple function call. To keep it simple, let's say we are
getting the max screen resolution. And, we code a simple function to do
that. And we place this as the sole function in our object that we will
make available to remote clients.

When a remote client attaches to our object and calls the function will the max screen resolution returned be for the client's screen or the host's
screen?

I guess I am asking what context the object will run in if marshalled by
reference and what context if marshalled by value.

Thanks for your help!

Jul 21 '05 #3
On Tue, 13 Apr 2004 00:09:36 -0700, Klaus H. Probst wrote:
The code executes in the context of the machine that functions as a server.


Thanks so much Klaus!
Jul 21 '05 #4
On Tue, 13 Apr 2004 00:09:36 -0700, Klaus H. Probst wrote:
The code executes in the context of the machine that functions as a server.


Thanks so much Klaus!
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to...
0
by: Dennis Owens | last post by:
Read below for previous conversation. We are developing an application that will some day run on anything from a computer down to a PDA (this is were the Lightweight comes in). The messaging...
15
by: anders | last post by:
Hi! I have a config file that looks like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown mode="SingleCall"...
5
by: DraguVaso | last post by:
Hi, I need to write a VB.NET-application (Windows Forms) that may have a part of it (re-)implemented as a Webpage for the customers. I think it can be usefull to create a business Layer with...
10
by: Michael Culley | last post by:
In vb6 it was possible to create an exe as an activeX exe and communicate between 2 apps. Now we have remoting which requires opening a tcp port to listen on, which seems kinda crappy cause another...
6
by: Uttam | last post by:
Hello, We are at a very crucial decision making stage to select between .Net and Java. Our requirement is to download a class at runtime on the client computer and execute it using remoting or...
3
by: Lucas Tam | last post by:
Does anyone have a good articles that describes the pros and cons of Web Services vs. Remoting Hosted in IIS? Is there a reason to use either or? With Remoting Hosting in IIS, is it possible...
9
by: Nak | last post by:
Hi there, I have been messing around with remoting in an attempt to create a "shared application" as mentioned in another thread by that name. I have created a singleton object just like the...
2
by: Ryan | last post by:
My apologies if this is not the forum to post questions regarding .NET Remoting, but I figured WebServices would be the most appropriate forum of the bunch. We're currently completely re-arching...
2
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton /...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.