Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
QuestionLinkedin import to C# WPF desktop application? Pin
Mandarinna3-Apr-14 23:42
Mandarinna3-Apr-14 23:42 
AnswerRe: Linkedin import to C# WPF desktop application? Pin
Richard MacCutchan3-Apr-14 23:58
mveRichard MacCutchan3-Apr-14 23:58 
QuestionTCPClient across AppDomains Pin
Carlos Sousa3-Apr-14 23:38
Carlos Sousa3-Apr-14 23:38 
AnswerRe: TCPClient across AppDomains Pin
Rob Philpott4-Apr-14 4:27
Rob Philpott4-Apr-14 4:27 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 5:15
Carlos Sousa4-Apr-14 5:15 
GeneralRe: TCPClient across AppDomains Pin
Rob Philpott4-Apr-14 6:03
Rob Philpott4-Apr-14 6:03 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 11:37
Carlos Sousa4-Apr-14 11:37 
AnswerRe: TCPClient across AppDomains Pin
jschell4-Apr-14 8:15
jschell4-Apr-14 8:15 
Carlos Sousa wrote:
How can I pass the TCP client object across AppDomains?


You can't. The reason is that the app domain barrier despite looking magical ONLY works via serialization. And noted by the other response a TCPClient represents resources (not data) which cannot be serialized.

You can however proxy the TCPClient. You create a proxy and it passes data across the barrier and gets data back. That data of course used by the real TCPClient to send receive messages. Note of course that given that all of the normal restrictions with threads applies it might be easier to create the TCPClient in the AppDomain though.
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 11:45
Carlos Sousa4-Apr-14 11:45 
GeneralRe: TCPClient across AppDomains Pin
jschell7-Apr-14 9:23
jschell7-Apr-14 9:23 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa8-Apr-14 5:33
Carlos Sousa8-Apr-14 5:33 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa9-Apr-14 3:35
Carlos Sousa9-Apr-14 3:35 
GeneralRe: TCPClient across AppDomains Pin
jschell10-Apr-14 8:30
jschell10-Apr-14 8:30 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa10-Apr-14 11:43
Carlos Sousa10-Apr-14 11:43 
QuestionHow to export pdf data (byte[] format) from SQL database to PDF using C# ? Pin
taibc3-Apr-14 20:49
taibc3-Apr-14 20:49 
AnswerRe: How to export pdf data (byte[] format) from SQL database to PDF using C# ? Pin
OriginalGriff3-Apr-14 21:36
mveOriginalGriff3-Apr-14 21:36 
GeneralRe: How to export pdf data (byte[] format) from SQL database to PDF using C# ? Pin
taibc3-Apr-14 22:19
taibc3-Apr-14 22:19 
GeneralRe: How to export pdf data (byte[] format) from SQL database to PDF using C# ? Pin
OriginalGriff3-Apr-14 22:29
mveOriginalGriff3-Apr-14 22:29 
Questionimage processing Pin
praveeno3-Apr-14 18:22
praveeno3-Apr-14 18:22 
AnswerRe: image processing Pin
Dave Kreskowiak3-Apr-14 18:29
mveDave Kreskowiak3-Apr-14 18:29 
GeneralRe: image processing Pin
Richard Andrew x643-Apr-14 18:50
professionalRichard Andrew x643-Apr-14 18:50 
QuestionGet values from object in other class Pin
Dick Lasy3-Apr-14 8:33
Dick Lasy3-Apr-14 8:33 
AnswerRe: Get values from object in other class Pin
OriginalGriff3-Apr-14 8:53
mveOriginalGriff3-Apr-14 8:53 
GeneralRe: Get values from object in other class Pin
Dick Lasy4-Apr-14 0:49
Dick Lasy4-Apr-14 0:49 
GeneralRe: Get values from object in other class Pin
OriginalGriff4-Apr-14 0:50
mveOriginalGriff4-Apr-14 0:50 

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.