AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
Forms.Application.ThreadException +=
new System.Threading.ThreadException
嗨我加載到另一個域的DLL,它加載到該域時正常工作,但是當我想通過代理對象從該域的一些信息,它給了我例外下面是審查代碼任何錯誤的步驟? public class AssemblyProxy
{
System.Type[] _types;
public System.Type[] GetTypes()
{
return _types;
請考慮下面的代碼: // Create a new application domain
AppDomain ad = AppDomain.CreateDomain("New domain");
Worker work = new Worker();
// if Worker class is marked as 'MarshalByRefObject', this will run i