Groups | Blog | Home
all groups > dotnet remoting > september 2005 >

dotnet remoting : C dll in different context


Robert Jordan
9/12/2005 12:00:00 AM
Hi Christophe,

[quoted text, click to view]

The DLL is loaded once because a new appdomain ist *not* a new Win32
process.

You have to start a new process (see System.Diagnostics.Process)
to be able to use the DLL more then once. It this case you don't
need a new appdomain, because the new process will automatically
create one for you.

(BTW, I don't think you'll gain more processing speed from this setup)

Robert Jordan
9/12/2005 12:00:00 AM
Hi Christophe,

[quoted text, click to view]

If the apps are .NET apps I'd use .NET remoting.
BTW, you're posting in a .NET remoting NG ;-)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconnetremotingoverview.asp

Christophe MIGNOT
9/12/2005 6:59:12 AM
Hi all,

On my current project, i need to run "some" operation from a dll writen in
fortran (the result is the same as C or C++, native Win32). To optimize
server resources, i try to compute multiple data at the same time. But (and
this is my problem), my dll is initialized by a file (there are 20 different
files, so 20 different context) and i want to run 20 operations at the same
time.
I've created 2 (for test) different AppDomain to load my dll but it seems to
be loaded once. So the "globals" of my dll are missed initialized. Is there a
way to solve my problem?

I would be very pleased if some could help me.
Chris
Christophe MIGNOT
9/12/2005 8:28:06 AM
Hi Rob,

Thanks for your response, it is what i was thinking about. I was expectating
an hidden attribute to make the job for me.
Do you know a way (a simple link would be enough) to make two win32 apps
communicate easily and exchange data (I know i could do it with TcpClient for
exemple, but I'm not quite experienced in this domain).

Christophe

[quoted text, click to view]
Christophe MIGNOT
9/12/2005 8:58:05 AM
Thanks a lot Rob.
I'm gonna look at that tomorrow (european clock is quite different from PST).

Chis

[quoted text, click to view]
AddThis Social Bookmark Button