Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: Calls a method c# Pin
Rahul Hanumant Chavan8-Apr-16 21:31
professionalRahul Hanumant Chavan8-Apr-16 21:31 
QuestionSpeed up code Pin
GrooverFromHolland8-Apr-16 0:37
GrooverFromHolland8-Apr-16 0:37 
AnswerRe: Speed up code Pin
OriginalGriff8-Apr-16 1:12
mveOriginalGriff8-Apr-16 1:12 
AnswerRe: Speed up code Pin
Sascha Lefèvre8-Apr-16 1:20
professionalSascha Lefèvre8-Apr-16 1:20 
GeneralRe: Speed up code Pin
OriginalGriff8-Apr-16 1:34
mveOriginalGriff8-Apr-16 1:34 
GeneralRe: Speed up code Pin
GrooverFromHolland8-Apr-16 1:52
GrooverFromHolland8-Apr-16 1:52 
GeneralRe: Speed up code Pin
Sascha Lefèvre8-Apr-16 2:41
professionalSascha Lefèvre8-Apr-16 2:41 
GeneralRe: Speed up code Pin
Eddy Vluggen8-Apr-16 2:54
professionalEddy Vluggen8-Apr-16 2:54 
AnswerRe: Speed up code Pin
Gerry Schmitz8-Apr-16 7:24
mveGerry Schmitz8-Apr-16 7:24 
GeneralRe: Speed up code Pin
GrooverFromHolland18-Apr-16 23:59
GrooverFromHolland18-Apr-16 23:59 
GeneralRe: Speed up code Pin
Gerry Schmitz19-Apr-16 4:58
mveGerry Schmitz19-Apr-16 4:58 
AnswerRe: Speed up code Pin
Patrice T9-Apr-16 0:01
mvePatrice T9-Apr-16 0:01 
GeneralRe: Speed up code Pin
GrooverFromHolland9-Apr-16 1:56
GrooverFromHolland9-Apr-16 1:56 
GeneralRe: Speed up code Pin
Patrice T9-Apr-16 5:09
mvePatrice T9-Apr-16 5:09 
Question.NET Remoting connection timing out after many invocations Pin
RichardGrimmer7-Apr-16 20:30
RichardGrimmer7-Apr-16 20:30 
Hi guys,
So I have an object that I'm exposing via .NET remoting (for historical / political reasons I can't just drop this and go to something more modern), which I use to process a list of items, one call per item in my list. The remoting server is set up as Single call rather than Singleton, and so my understanding is that I should get a new instance of the server class on each invocation - i.e. for each item in my list.

This seems to work just fine for small datasets, but when I push it a little by processing a list containing approx. 200K items, it reaches around 19K processed, I see a timeout, and the call fails with a socket exception - "A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond". The next call then succeeds and processing continues...but then fails again later.

There seems to be no significance in the number of records processed - this varies from around 19K to 19.1k and fails at different points and with different records.

Additionally, when I run the system in multi-threaded mode (Parallel.ForEach() & MaxDegreeOfParallelism == -1), then I'm seeing the same "profile" of failures, but instead of a single record fail followed by the next "working", I'm seeing about 10 failures before it comes back to life - which leads me to believe it's something like the server actually dying and being re-instantiated.

Anyone have any ideas? I can batch out the data and get a "new" remoting connection if I create a factory to do so (I'm injecting my remoting client), but this seems like avoiding the problem rather than understanding the cause and fixing it. Ultimately this will be used to process > 1.2M records

Cheers guys!
C# has already designed away most of the tedium of C++.

AnswerRe: .NET Remoting connection timing out after many invocations Pin
Richard Andrew x648-Apr-16 3:42
professionalRichard Andrew x648-Apr-16 3:42 
AnswerRe: .NET Remoting connection timing out after many invocations Pin
Dikshitar V.9-Apr-16 10:23
Dikshitar V.9-Apr-16 10:23 
QuestionLocal Service to monitor a folder on desktop Pin
Blubbo7-Apr-16 9:40
Blubbo7-Apr-16 9:40 
AnswerRe: Local Service to monitor a folder on desktop Pin
Richard Deeming7-Apr-16 10:25
mveRichard Deeming7-Apr-16 10:25 
GeneralRe: Local Service to monitor a folder on desktop Pin
Blubbo8-Apr-16 1:26
Blubbo8-Apr-16 1:26 
GeneralRe: Local Service to monitor a folder on desktop Pin
Richard Deeming8-Apr-16 1:46
mveRichard Deeming8-Apr-16 1:46 
GeneralRe: Local Service to monitor a folder on desktop Pin
Blubbo8-Apr-16 2:50
Blubbo8-Apr-16 2:50 
GeneralRe: Local Service to monitor a folder on desktop Pin
Eddy Vluggen8-Apr-16 2:57
professionalEddy Vluggen8-Apr-16 2:57 
GeneralRe: Local Service to monitor a folder on desktop Pin
Richard Deeming8-Apr-16 3:00
mveRichard Deeming8-Apr-16 3:00 
AnswerRe: Local Service to monitor a folder on desktop Pin
Rahul Hanumant Chavan8-Apr-16 21:38
professionalRahul Hanumant Chavan8-Apr-16 21:38 

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.