启动后,Sql Server Management Studio将在大约五秒钟后关闭。没有消息显示(即使在控制台中),并且Windows Event Viewer中没有日志。我尝试安装不同的SSMS版本,即16.X,17.Y,但没有帮助。我还试图修复 VS 2017和SSMS。
当我取消安装Visual Studio 2015及其相关组件(如SSMS)并安装VS 2017和更高版本的SSMS(16.X)时,第一次出现此问题。
如何使SSMS在启动后不立即关闭?
我有一个类Forest和CellularJPanel,延伸JPanel和显示Forest.我写了一个原始的代码来创建JFrame,Forest,CellularJPanel并添加CellularJPanel到JFrame.接下来是一个无限循环,它进行Forest更新和CellularJPanel重绘.
JFrame jFrame = new JFrame();
Forest forest = new Forest();
CellularJPanel forestJPanel = new CellularJPanel(forest);
jFrame.add(forestJPanel);
jFrame.pack();
//jFrame.setResizable(false);
jFrame.setLocationRelativeTo(null);
jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jFrame.setVisible(true);
while (true)
{
try
{
forestJPanel.repaint();
forest.update();
forest.sleep(); // calls Thread.sleep(...)
}
catch (InterruptedException e)
{
}
}
Run Code Online (Sandbox Code Playgroud)
这是CellularJPanel该类的代码:
public class CellularJPanel extends JPanel
{
private CellularAutomata cellularAutomata;
public CellularJPanel(CellularAutomata cellularAutomata)
{
super();
this.cellularAutomata …Run Code Online (Sandbox Code Playgroud)