Click here to Skip to main content
15,897,519 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListView (CLR 2.0) in virtual mode and OwnerDraw with mouse over = problems Pin
Ed.Poore31-Jul-06 9:52
Ed.Poore31-Jul-06 9:52 
GeneralRe: ListView (CLR 2.0) in virtual mode and OwnerDraw with mouse over = problems Pin
Fred dBu31-Jul-06 20:45
Fred dBu31-Jul-06 20:45 
GeneralRe: ListView (CLR 2.0) in virtual mode and OwnerDraw with mouse over = problems Pin
Ed.Poore31-Jul-06 21:56
Ed.Poore31-Jul-06 21:56 
QuestionHow to pass not simple types using .NET Remoting Pin
Nigor31-Jul-06 6:36
Nigor31-Jul-06 6:36 
AnswerRe: How to pass not simple types using .NET Remoting Pin
Dustin Metzgar31-Jul-06 6:46
Dustin Metzgar31-Jul-06 6:46 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Nigor31-Jul-06 7:08
Nigor31-Jul-06 7:08 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Dustin Metzgar31-Jul-06 8:16
Dustin Metzgar31-Jul-06 8:16 
GeneralRe: How to pass not simple types using .NET Remoting [modified] Pin
Nigor31-Jul-06 8:49
Nigor31-Jul-06 8:49 
See, I'm trying to understand .NET Remoting, and if object were people here is how I think they would talk (based on the code sample in my previous response).

Client To Server: "Server, Im sending u a FileStream object. If you want to know anything about it, let me know. From your point of you, this is just a description of the object. You can't do anything with it. Im just letting you know that I have this object and what features this object has. Ask me and I will tell you anything about it.

Server To Client: "Ok, I want you to read 4 bytes from the object starting at the begining and then send the bytes back to me."

Client To Server: [CLIENT Reads the 4 bytes locally] "Ok, there you go, I read the 4 bytes from the beginning and sent it to you."

So I thought thats the idea with MarshalByRefObjects as opposed to [Serializable] objects. If the cursor is invalid on any other machine then that shouldnt matter. Because the server machine is marshaling all calls to the client, the server is not actually doing anything with the object. When a certain function is executed on the object on the server, the server asks two questions "What do I need to pass to the client and what will the client return to me?" Then it marhals a call to the client.

I the case of "fileStream.Read(someData, 0, someData.Length);" the server doesnt do jack with filesSream, it just lets the client know that the it should read 4 bytes from the file and send it back to the server. Then the sever would store the data in "someData" array. If this is not the case then I am totaly lost.



-- modified at 14:51 Monday 31st July, 2006
GeneralRe: How to pass not simple types using .NET Remoting Pin
Dustin Metzgar31-Jul-06 10:15
Dustin Metzgar31-Jul-06 10:15 
AnswerRe: How to pass not simple types using .NET Remoting [modified] Pin
Andy Brummer31-Jul-06 10:15
sitebuilderAndy Brummer31-Jul-06 10:15 
AnswerRe: How to pass not simple types using .NET Remoting Pin
Nigor31-Jul-06 16:43
Nigor31-Jul-06 16:43 
AnswerRe: How to pass not simple types using .NET Remoting Pin
LongRange.Shooter1-Aug-06 3:36
LongRange.Shooter1-Aug-06 3:36 
AnswerRe: How to pass not simple types using .NET Remoting Pin
Nigor1-Aug-06 5:44
Nigor1-Aug-06 5:44 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Dustin Metzgar1-Aug-06 5:58
Dustin Metzgar1-Aug-06 5:58 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Nigor1-Aug-06 6:09
Nigor1-Aug-06 6:09 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Dustin Metzgar1-Aug-06 6:19
Dustin Metzgar1-Aug-06 6:19 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Nigor1-Aug-06 6:32
Nigor1-Aug-06 6:32 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Dustin Metzgar1-Aug-06 7:00
Dustin Metzgar1-Aug-06 7:00 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Nigor1-Aug-06 8:22
Nigor1-Aug-06 8:22 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Dustin Metzgar1-Aug-06 8:46
Dustin Metzgar1-Aug-06 8:46 
GeneralRe: How to pass not simple types using .NET Remoting Pin
Nigor1-Aug-06 11:03
Nigor1-Aug-06 11:03 
AnswerRe: How to pass not simple types using .NET Remoting [modified] Pin
Nigor3-Aug-06 9:23
Nigor3-Aug-06 9:23 
AnswerRe: How to pass not simple types using .NET Remoting [modified] Pin
Nigor4-Aug-06 8:03
Nigor4-Aug-06 8:03 
GeneralRe: How to pass not simple types using .NET Remoting Pin
code-frog4-Aug-06 8:21
professionalcode-frog4-Aug-06 8:21 
GeneralRe: How to pass not simple types using .NET Remoting [modified] Pin
Nigor4-Aug-06 9:10
Nigor4-Aug-06 9:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.