Groups | Blog | Home
all groups > dotnet remoting > march 2004 >

dotnet remoting : Very difficult situation



Allen Anderson
3/18/2004 11:21:19 AM
The handle is local to your process/thread which does not propogate
across remoting. Henceforth, this shouldn't work at all. You'll need
to find abort them from the server that has the dll loaded inproc.


Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com

On Thu, 18 Mar 2004 14:45:09 +0100, "PS" <psiodemak@aiut.com.pl>
[quoted text, click to view]
Sunny
3/18/2004 12:23:30 PM
Does this .dll is used at client also?
If you want to abort server functions, most probably you have to create
some kind of wrapper, and call the wrapper method, which will call the
c++ function.

Sunny

In article <uEOg#8ODEHA.1072@TK2MSFTNGP09.phx.gbl>,
psiodemak@aiut.com.pl says...
[quoted text, click to view]
PS
3/18/2004 2:45:09 PM
Hi

I have a very difficult problem.
I had some elements
1 - .dll written in old C++ (not managed)
2 - server written in C# (remoting server)
3 - client written in MC++ (remoting client)

In my .dll I have function which are using parameter (type HANDLE) as a way
to abort function executing.
In server I can use this function with AutoResetEvent and I can abort old
functions without any problems.
But it doesn't work from remoting client - when I'm invoking function and
use AutoResetEvent it is just ignored and nothing changes if it is set or
not.
Does anybody has any idea how to cope with this? I can't change .dll code...

Thanks in advance
P

PS
3/19/2004 8:43:45 AM
Ok, so next problem is: how to break (from remote client) execution server
function?


[quoted text, click to view]

PS
3/19/2004 8:44:30 AM
no, this dll is used only from server

[quoted text, click to view]

Allen Anderson
3/19/2004 8:52:34 AM
so, your saying that thread 1 calls a function that doesn't end which
blocks t2? That's unlikely in a standard thread scenario. Could you
be a bit more specific on exactly what your trying to do?

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com


On Fri, 19 Mar 2004 15:13:47 +0100, "PS" <psiodemak@aiut.com.pl>
[quoted text, click to view]
PS
3/19/2004 3:13:47 PM
Well I have an idea how to cope with my problem - it needs threads....
So, I have another problem:
two threads: T1 and T2
T1 invoke fun1 - which doesn't end
now T2 woul like to invoke another function but it can't - just hung on.....
I'm using Activator::GetObject function to get connection to remote
object...

what to do with this??

[quoted text, click to view]

PS
3/22/2004 8:36:07 AM
Ok, I will try :)

my server has function which waits for data, If there isn't any data this
function is just waiting,
so, my client invoke this function in for example T1, in another thread T2
client wants to invoke other function but it can't - it hang on until
function in t1 ends...
I must admin that I don't understand why it works in this way, why it can't
just create another channel or something...


[quoted text, click to view]

AddThis Social Bookmark Button