Пример #1
0
		protected virtual void OnAttachToProcessActionActivated (object sender, System.EventArgs e)
		{
			ProcessSelector p = new ProcessSelector ();
			int c = p.Run ();
			if (c == (int) ResponseType.Ok){
				VirtualMachine vm = new VirtualMachine (p.PID);

				vm.Attach (typeof (MainWindow).Assembly.Location, "--agent");
			}
			
			p.Destroy ();
		}
Пример #2
0
        protected virtual void OnAttachToProcessActionActivated(object sender, System.EventArgs e)
        {
            ProcessSelector p = new ProcessSelector();
            int             c = p.Run();

            if (c == (int)ResponseType.Ok)
            {
                VirtualMachine vm = new VirtualMachine(p.PID);

                vm.Attach(typeof(MainWindow).Assembly.Location, "--agent");
            }

            p.Destroy();
        }