title: Java Result: -1073740940 - I get this when I run the code, now all my code won't run
body: <p>So I have this code.. I ran it and gave the following message.</p>
  
  <pre class="lang-none prettyprint-override"><code>run:
  Java Result: -1073740940
  BUILD SUCCESSFUL (total time: 21 seconds)
  </code></pre>
  
  <p>After that.. Even previous projects that were all working properly won't even run. they all give me the same result. I have looked all over for a solution, but none of the people on the forums even get the problem whenever anyone asks it. </p>
  
  <p>Here is the code.. Long, I know.. But I hope it helps. The error began when I added the SQL connections to the sign up button and wrote the saveName function.</p>
  
  <pre><code>import java.sql.*;
  import java.util.logging.Level;
  import java.util.logging.Logger;
  import java.lang.Exception.*;
  
  public class SmartStock extends JFrame implements ActionListener{
  
  Connection conn = null;
  Statement stmt = null;
  
  public void saveName(String FirstName,String LastName,String SurName, String Password) throws SQLException{
  
      String url = "jdbc:sqlserver//:localhost:1433/USERS";
      String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
      String userName = ""; 
      String password = "";
  
  
      try {
          Class.forName(driver);
          conn = DriverManager.getConnection(url, userName, password);
          stmt = conn.createStatement();
          stmt.executeUpdate("INSERT INTO USER_PERSONAL_DETAILS(forename, lastname, surname, password) VALUES ('','"+txtFName.getText()+ "','" +txtLName.getText()+"','"+txtSName.getText()+"','"+nwpassword.getText()+"'");
  
      }catch (ClassNotFoundException ex) {
              Logger.getLogger(SmartStock.class.getName()).log(Level.SEVERE, null, ex);
          } catch (SQLException ex) {
              Logger.getLogger(SmartStock.class.getName()).log(Level.SEVERE, null, ex);
          }
  }
  
     //In here is the JFrame for the code.. Long so I trimmed it off.
  
    public void actionPerformed(ActionEvent e){
  
  
      if(e.getSource()==btnSignup){         
          String fname = txtFName.getText();
          String lname=txtLName.getText();
          String sname=txtSName.getText();
          String pword=nwpassword.getText();
  
          try{
              saveName(fname,lname,sname,pword);
          } catch (SQLException ex) {
              Logger.getLogger(SmartStock.class.getName()).log(Level.SEVERE, null, ex);
          }
  
          new SignUp();
          dispose();
     }
      else if(e.getSource()==btnExit){
          System.exit(0);
       }
      }
  }
  </code></pre>