Skip to content
Snippets Groups Projects
Commit d0ba04e8 authored by Reeves, David E's avatar Reeves, David E
Browse files

* fixed bds to not leave java server hanging

parent 194caaf4
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -1037,6 +1037,7 @@
this.Controls.Add(this.barDockControlTop);
this.Name = "BDSMainform";
this.Text = "Behavior Development Studio";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.BDSMainform_FormClosing);
this.Load += new System.EventHandler(this.BDSMainform_Load);
((System.ComponentModel.ISupportInitialize)(this.documentManager1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
......
......@@ -1085,5 +1085,10 @@ namespace BehaviorStudio2
return ConfigurationManager.AppSettings.Get("CXXI_PATH");
}
private void BDSMainform_FormClosing(object sender, FormClosingEventArgs e)
{
CodeCompleteTools.CloseJava();
}
}
}
......@@ -140,6 +140,10 @@
<EmbeddedResource Include="res\add_primitive_order.snp" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Hello World1\HelloWorld2\AsynchronousClient.csproj">
<Project>{37bfc20e-b46d-4feb-85e7-ab7edceb88d6}</Project>
<Name>AsynchronousClient</Name>
</ProjectReference>
<ProjectReference Include="..\HTNTreeControl\HTNTreeControl.csproj">
<Project>{742C3901-2422-4874-B864-A675A7E030A8}</Project>
<Name>HTNTreeControl</Name>
......
......@@ -17,6 +17,20 @@ namespace CodeCompleteTool
public static Dictionary<string, string> classMap = new Dictionary<string, string>();
public static bool javaServer = false;
public static System.Diagnostics.Process process;
public static void CloseJava()
{
if (javaServer)
{
process.Close();
AsyncThreadClient atc = new AsyncThreadClient();
atc.Connect();
Console.WriteLine("ATC Connected!");
atc.SendAndReceiveThread("DONE<EOP>", null);
}
}
public static void TestJavaServer()
{
......@@ -24,7 +38,7 @@ namespace CodeCompleteTool
return;
Console.WriteLine("Test client");
System.Diagnostics.Process process = new System.Diagnostics.Process();
process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
......
......@@ -2,6 +2,9 @@
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group name="Group 20180201-03:20:09"/>
<group name="Group 20180201-03:20:09">
<file>file:/D:/code_base/CSharp/Devexpress/dev/java/BDSCodeCompleteServer/src/bdscodecompleteserver/BDSServer.java</file>
<file>file:/D:/code_base/CSharp/Devexpress/dev/java/BDSCodeCompleteServer/src/bdscodecompleteserver/BDSServerFrame.java</file>
</group>
</open-files>
</project-private>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment