Hi,
It is trivial to load an assembly in a new Application Domain. Is there
any way of loading an assembly in a new process?
I tried using the Process class like this:
Process p = new Process()
p.StartInfo.Fil eName = mStartupFile
p.StartInfo.Use ShellExecute = False
p.StartInfo.Win dowStyle = ProcessWindowSt yle.Hidden
p.StartInfo.Red irectStandardOu tput = True
p.Start()
string text = p.StandardOutpu t.ReadToEnd()
p.WaitForExit()
Though this works for exes, it doesn't for DLL assemblies. On my system
Dll is associated with Dependency Walker so it just opens the assembly
up in it.
How would I go about doing a LoadAssembly in a seperate process?
Thanks...
Ali
It is trivial to load an assembly in a new Application Domain. Is there
any way of loading an assembly in a new process?
I tried using the Process class like this:
Process p = new Process()
p.StartInfo.Fil eName = mStartupFile
p.StartInfo.Use ShellExecute = False
p.StartInfo.Win dowStyle = ProcessWindowSt yle.Hidden
p.StartInfo.Red irectStandardOu tput = True
p.Start()
string text = p.StandardOutpu t.ReadToEnd()
p.WaitForExit()
Though this works for exes, it doesn't for DLL assemblies. On my system
Dll is associated with Dependency Walker so it just opens the assembly
up in it.
How would I go about doing a LoadAssembly in a seperate process?
Thanks...
Ali
Comment