Esempio n. 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 ();
		}
Esempio n. 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();
        }