Exception Handling across Process

K

Karthik

Dear all,

I m having 2 processes process 1 and process 2
Im calling process 2 from Process 1 and there is an exception
happening in process 2
i need to handle that exception in process 1
How this can done in C sharp

I came to know about process.standard error. But that can be handled
only for Standard exceptions and not for others.

Please help me.

Thanks,
Prince Victor.
 
P

Pavel Minaev

I m having 2 processes process 1 and process 2
Im calling process 2 from Process 1 and there is an exception
happening in process 2
i need to handle that exception in process 1
How this can done in C sharp

In general, it cannot. For some specific cases (e.g. .NET Remoting) it
may be possible (though still a bit of a stretch), but since you are
very light on details of your case, there's nothing that can be said
here.

Keep in mind that processes are isolated. You cannot, in general, pass
a .NET object from one process to another; why would exception be any
different? Besides, a different process might not be a .NET one at
all...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top