Click here to Skip to main content
15,909,030 members
Home / Discussions / C#
   

C#

 
AnswerRe: Detecting Ctrl + arrow keys Pin
Jay Shankar31-Jul-06 15:34
Jay Shankar31-Jul-06 15:34 
Questionstatic keyword like C++ Pin
Maksymus00731-Jul-06 12:29
Maksymus00731-Jul-06 12:29 
AnswerRe: static keyword like C++ Pin
Guffa31-Jul-06 13:23
Guffa31-Jul-06 13:23 
AnswerRe: static keyword like C++ Pin
Kamal Sagar1-Aug-06 2:05
Kamal Sagar1-Aug-06 2:05 
Questionmy INSERT is not working Pin
Tom Wright31-Jul-06 10:40
Tom Wright31-Jul-06 10:40 
AnswerRe: my INSERT is not working Pin
Empires31-Jul-06 12:22
Empires31-Jul-06 12:22 
GeneralRe: my INSERT is not working Pin
Tom Wright31-Jul-06 12:30
Tom Wright31-Jul-06 12:30 
GeneralRe: my INSERT is not working Pin
Colin Angus Mackay31-Jul-06 12:36
Colin Angus Mackay31-Jul-06 12:36 
AnswerRe: my INSERT is not working Pin
Colin Angus Mackay31-Jul-06 12:39
Colin Angus Mackay31-Jul-06 12:39 
GeneralRe: my INSERT is not working Pin
Christian Graus31-Jul-06 19:18
protectorChristian Graus31-Jul-06 19:18 
GeneralRe: my INSERT is not working Pin
Colin Angus Mackay31-Jul-06 20:32
Colin Angus Mackay31-Jul-06 20:32 
GeneralRe: my INSERT is not working Pin
Tom Wright3-Aug-06 10:48
Tom Wright3-Aug-06 10:48 
QuestionCompressing directrory tree into single zip file Pin
Ilia Blank31-Jul-06 10:09
Ilia Blank31-Jul-06 10:09 
AnswerRe: Compressing directrory tree into single zip file Pin
Dustin Metzgar31-Jul-06 10:42
Dustin Metzgar31-Jul-06 10:42 
QuestionC# user control in VB6? is it possible? Pin
Xodiak31-Jul-06 9:20
Xodiak31-Jul-06 9:20 
QuestionListView (CLR 2.0) in virtual mode and OwnerDraw with mouse over = problems Pin
Fred dBu31-Jul-06 8:14
Fred dBu31-Jul-06 8:14 
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 

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.