Click here to Skip to main content
15,867,594 members
Home / Discussions / C#
   

C#

 
GeneralAppDomain.DomainUnload never fired automatically Pin
VizOne23-Apr-04 6:16
VizOne23-Apr-04 6:16 
GeneralRe: AppDomain.DomainUnload never fired automatically Pin
leppie23-Apr-04 7:00
leppie23-Apr-04 7:00 
GeneralRe: AppDomain.DomainUnload never fired automatically Pin
VizOne25-Apr-04 8:30
VizOne25-Apr-04 8:30 
GeneralP/Invoke and strings Pin
Dominik Reichl23-Apr-04 6:04
Dominik Reichl23-Apr-04 6:04 
GeneralRe: P/Invoke and strings Pin
Heath Stewart23-Apr-04 6:11
protectorHeath Stewart23-Apr-04 6:11 
QuestionMultithreaded shared remote object ? Pin
Gangren23-Apr-04 5:50
Gangren23-Apr-04 5:50 
AnswerRe: Multithreaded shared remote object ? Pin
Heath Stewart23-Apr-04 6:14
protectorHeath Stewart23-Apr-04 6:14 
GeneralRe: Multithreaded shared remote object ? Pin
Gangren23-Apr-04 6:24
Gangren23-Apr-04 6:24 
Heath Stewart wrote:
You want the same client to execute the remote method multiple times at once? Or do you want multiple clients (i.e., multiple processes, perhaps even on different machines) to call it? The latter is already taken care of for you, which is why you should internally lock any resources if appropriate in your remote method.

Indeed, it's about multiple clients, each of one doing 1 single call at a time. But from the tests i ran, here's what happens :
Client 1 calls remote_method
Client 2 calls remote method
remote_method takes 30 seconds to complete and returns result to Client 1
remote_method takes 30 seconds to complete and returns result to Client 2

So Client2 will wait 60 seconds before getting his result, which is not acceptable in my case where i'll have up to 15 clients calling the service. I need the server to treat requests simulteanously, which is why i need him to create a new thread on each call.

I just don't know the best way to implement this, and if i absolutely need asynchronous dialog using deleguates (which would require to have a MBR object client-side too, from what i understood)

Thanks for quick reply though, i really appreciate Smile | :)

Etienne.
GeneralRe: Multithreaded shared remote object ? Pin
Heath Stewart23-Apr-04 6:35
protectorHeath Stewart23-Apr-04 6:35 
GeneralRe: Multithreaded shared remote object ? Pin
Tom Larsen23-Apr-04 10:06
Tom Larsen23-Apr-04 10:06 
GeneralRe: Multithreaded shared remote object ? Pin
Gangren23-Apr-04 12:59
Gangren23-Apr-04 12:59 
GeneralRe: Multithreaded shared remote object ? Pin
Tom Larsen29-Apr-04 11:07
Tom Larsen29-Apr-04 11:07 
GeneralRe: Multithreaded shared remote object ? Pin
Gangren29-Apr-04 11:22
Gangren29-Apr-04 11:22 
AnswerRe: Multithreaded shared remote object ? Pin
Gangren27-Apr-04 20:00
Gangren27-Apr-04 20:00 
GeneralPrint Preview Pin
GoodQuestion23-Apr-04 5:18
GoodQuestion23-Apr-04 5:18 
GeneralRe: Print Preview Pin
Heath Stewart23-Apr-04 6:09
protectorHeath Stewart23-Apr-04 6:09 
GeneralRe: Print Preview Pin
GoodQuestion27-Apr-04 11:21
GoodQuestion27-Apr-04 11:21 
GeneralDataGrids used for simple data Pin
Jon G23-Apr-04 4:45
Jon G23-Apr-04 4:45 
GeneralRe: DataGrids used for simple data Pin
Heath Stewart23-Apr-04 5:33
protectorHeath Stewart23-Apr-04 5:33 
QuestionHow do you bind data to a CheckedListBox? Pin
inyoursadachine23-Apr-04 4:37
inyoursadachine23-Apr-04 4:37 
AnswerRe: How do you bind data to a CheckedListBox? Pin
Heath Stewart23-Apr-04 5:28
protectorHeath Stewart23-Apr-04 5:28 
GeneralDataGrid full row select Pin
Guinness4Strength23-Apr-04 4:18
Guinness4Strength23-Apr-04 4:18 
GeneralRe: DataGrid full row select Pin
Heath Stewart23-Apr-04 5:13
protectorHeath Stewart23-Apr-04 5:13 
GeneralRe: DataGrid full row select Pin
Jay Shankar25-Apr-04 18:09
Jay Shankar25-Apr-04 18:09 
GeneralRe: DataGrid full row select Pin
Guinness4Strength26-Apr-04 4:18
Guinness4Strength26-Apr-04 4:18 

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.