Note that there are some explanatory texts on larger screens.

plurals
  1. POProgram Crashes on Debugging
    primarykey
    data
    text
    <p>I am new to C# this is kind of my first program. I am trying to integrate a SOAPI from OVH.IE (more info here: <a href="http://www.ovh.ie/products/soapi.xml" rel="nofollow">www.ovh.ie/products/soapi.xml</a>), but whenever I launch the program and click the login button the program crashes (memory usage of VS2012 increases and then crashes).</p> <pre><code>using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Web.Services; namespace Server_Manager { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { textBox1.Clear(); textBox2.Clear(); } void login(string uid, string pwd, string dc) { if (dc == "OVH") { managerService soapi = new managerService(); string session = soapi.login(uid, pwd, "ie", false); if (String.IsNullOrWhiteSpace(session)) { MessageBox.Show("Not Logged"); } else { MessageBox.Show("Logged In"); } } } private void button1_Click(object sender, EventArgs e) { if (String.IsNullOrWhiteSpace(textBox1.Text) || String.IsNullOrWhiteSpace(textBox1.Text)) { MessageBox.Show("Please Fill all the Details"); } else { string uid, pwd, dc; uid = textBox1.Text; pwd = textBox2.Text; dc = comboBox1.Text; login(uid,pwd,dc); } MessageBox.Show(comboBox1.Text); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload