public partial class Autobuyer : Form
{
Client AbClient;
public Autobuyer(Client cli)
{
InitializeComponent();
AbClient = cli;
}
The function in which the error occurs.
public class Client {
}
The client is the class in which the problem seems.
private void CheckAuth()
{
while (true)
{
if (!sAuth.IsAlive)
{
if(abClient.isAuthSucessful)
Application.Run(new Autobuyer(abClient));
break;
}
}
}
This is where the Autobuyer form is called. (Inside the first form that starts with main ())
I still do not know how to fix this, of course, I was looking, but no one seems to have an answer that works in my situation.
source
share