Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
AnswerRe: ListView (CLR 2.0) in virtual mode and OwnerDraw with mouse over = problems Pin
Ed.Poore31-Jul-06 8:39
Ed.Poore31-Jul-06 8:39 
GeneralRe: ListView (CLR 2.0) in virtual mode and OwnerDraw with mouse over = problems Pin
Fred dBu31-Jul-06 8:49
Fred dBu31-Jul-06 8:49 
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 
Yes, the intention is for server to get a pointer to a FileStream from a client machine then save it on the server. To make things simple, lets say the server needs to read 4 bytes from clients file:

Client:
-------

FileStream fileStream = new FileStram("C:\\Some File.txt");

// Assume all the .NET remoting connection stuff was already established
Server server = new Server();

server.Send(fileStream);


Server:
----------
void Send(FileStream fileStream)
{
byte[] someData = new byte[4];

fileStream.Read(someData, 0, someData.Length);

// then do something with that data
}

That does not work for me, the app will hang. But I do not see why. FileStream is a pointer yes, but it is a type that derives from MarshalByRefObject. So when the server executes "fileStream.Read(someData, 0, someData.Length);" it has to make a call to the client which will execute that method on the FileStream object, then return the read bytes back to server. I thought thats the whole point of .NET remoting, the ability to call objects across machine boundries.
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 
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 

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.