Create Object

  • Thread starter Thread starter Abdur Rahman
  • Start date Start date
A

Abdur Rahman

Hi,
Is there a way to create a object in new process.
i have a object and it is does not support
multithreading.So i want to create a new process each time
the object is created.

Thanks in Advance
Abdur Rahman
 
"Abdur Rahman" <[email protected]> expressed in the
message known far and wide by the name [email protected] thusly:
Hi,
Is there a way to create a object in new process.

Hi,

Can you just keep the object in one thread? In .Net, unless you explicitly
create new threads or use the threadpool (or there is something I am
missing about the architecture), there is only one thread of execution
servicing the application.

If you are using multiple threads, it would seem to me that using cross-
thread marshalling rather than cross-process marshalling would be the more
efficient route, both in terms of code and execution overhead.

-rory 8)
 
Hi Abdur,

A new process means a new version of your App, or a separate application just to act
as a wrapper for this object. In both cases you'll need interprocess communication, such
as .NET's remoting or any of the many Windows and comms methods.

Another option to explore is AppDomains. I don't know if a separate AppDomain will
fool this object, but it's possible.

Regards,.
Fergus
 
Back
Top