internal void AttachToHost() { if (CommunicationService.SdaCallback.IsParentx64()) { //TODO AA : x64 support } else { _sdHost.CreateInstanceInTargetDomain <InteractionClass>().Attach(HostProcess); } }
/// <summary> /// This demonstrates how to access SharpDevelop's internals from the host application. /// </summary> void MakeTransparentButtonClick(object sender, System.EventArgs e) { // We need to use a wrapper class to cross the AppDomain barrier. // The assembly containing the wrapper class will be loaded to both AppDomains. // Therefore we don't use our possibly large main application, but a special // assembly just for the interaction. SharpDevelopInteraction.InteractionClass obj; obj = host.CreateInstanceInTargetDomain <SharpDevelopInteraction.InteractionClass>(); obj.MakeTransparent(); }
public void AttachToHost() { if (WCFCommunicationService.SdaCallback.IsParentx64()) { //TODO //MessageBox.Show(Resources.SDIntegration_AttachToHost_Sorry__you_can_not_debug_x64_process, Resources.SDIntegration_AttachToHost_SDA_debug_error, // MessageBoxButtons.OK, // MessageBoxIcon.Error); } else { InteractionClass obj; obj = host.CreateInstanceInTargetDomain <InteractionClass>(); obj.Attach(hostProcess); } }