Witam mam taki problem:
Pobralem najnowszy SHGG(0.65) Taki jest kod:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HAKGERSoft;
using System.IO;
using System.Runtime.Serialization;
using System.Threading;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Net;
namespace AniGG
{
public partial class Form1 : Form
{
string sciezkazapisz = "";
string sciezkawczytaj = "";
public sHGG sharpGG = new sHGG();
public Form1()
{
InitializeComponent();
}
private void btnpolacz_Click(object sender, EventArgs e)
{
CheckForIllegalCrossThreadCalls = false;
this.sharpGG.GGNumber = numer.Text;
this.sharpGG.GGPassword = haslo.Text;
sharpGG.GGLogin();
this.sharpGG.GGStatus = GGStatusType.Busy;
}
private void btndost_Click(object sender, EventArgs e)
{
sharpGG.GGStatus = GGStatusType.Available;
}
private void btnzw_Click(object sender, EventArgs e)
{
sharpGG.GGStatus = GGStatusType.Busy;
}
private void btnniewi_Click(object sender, EventArgs e)
{
sharpGG.GGStatus = GGStatusType.Invisible;
}
private void btnniedo_Click(object sender, EventArgs e)
{
sharpGG.GGStatus = GGStatusType.NotAvailable;
}
private void btnrozlacz_Click(object sender, EventArgs e)
{
sharpGG.GGStatus = GGStatusType.NotAvailable;
sharpGG.GGLogout();
}
}
}
A problem polega na tym, ze gdy sie juz połacze z serwerem GG natychmist mnie rozlacza i zamyka program(po jakiejs sekundzie) Mozacie jakos pomoc?