[C#] Restart Problem
#9

So my Restarter is to 80% Finished (20% Labels and Counter) but i got one Problem:

 

If i start the GameServer with the Restarter it shows the "Cannot load Castle War" error and Crash.

 

But only then i start it with the Restarter..

 

Anyone know how i can solve this?

 

The Code for the Restart/Start :

 

private void button2_Click(object sender, EventArgs e)
{
bool Check;
Check = checkBox1.Visible; // This is for a Funktion, which comes soon..
while (Check == true)
{

bool CheckWer;
CheckWer = CheckIfAProcessIsRunning("werfault");
if (CheckWer == true)
{
Process[] pp = Process.GetProcessesByName("werfault");
foreach (Process p in pp)
{
p.Kill();

}
}

bool CheckConn;
CheckConn = CheckIfAProcessIsRunning("connector");
if (CheckConn == false)
{
Process.Start(@"Server\\Connector\\Connector.exe");
}

bool CheckGS;
CheckGS = CheckIfAProcessIsRunning("Gameserver");
if (CheckGS == false)
{
Process.Start(@"Server\\GameServer\\Gameserver.exe");
}

bool CheckHelp;
CheckHelp = CheckIfAProcessIsRunning("Helper");
if (CheckHelp == false)
{
Process.Start(@"Server\\Helper\\helper.exe");
}

bool CheckLog;
CheckLog = CheckIfAProcessIsRunning("Loginserver");
if (CheckLog == false)
{
Process.Start(@"Server\\LoginServer\\LoginServer.exe");
}

bool CheckMess;
CheckMess = CheckIfAProcessIsRunning("Messenger");
if (CheckMess == false)
{
Process.Start(@"Server\\Messenger\\Messenger.exe");
}

bool CheckCash;
CheckCash = CheckIfAProcessIsRunning("CashServer");
if (CheckCash == false)
{
Process.Start(@"Server\\CashServer\\CashServer.exe");
}

}
}



Messages In This Thread
[No subject] - by Nikolee - 04-27-2012, 09:50 PM
[No subject] - by Nikolee - 04-27-2012, 10:20 PM
[No subject] - by HateMe - 04-28-2012, 12:03 PM
[No subject] - by Nikolee - 04-28-2012, 01:07 PM
[No subject] - by HateMe - 04-28-2012, 01:28 PM
[No subject] - by Nikolee - 04-28-2012, 04:36 PM
[No subject] - by Nikolee - 04-28-2012, 07:55 PM
[No subject] - by HateMe - 04-28-2012, 10:38 PM
[No subject] - by Nikolee - 05-01-2012, 10:09 PM
[No subject] - by HateMe - 05-01-2012, 11:06 PM
[No subject] - by Nikolee - 05-02-2012, 10:54 AM
[No subject] - by Nikolee - 05-03-2012, 01:24 PM
[No subject] - by someone - 05-03-2012, 11:35 PM
[No subject] - by HateMe - 05-04-2012, 12:00 AM
[No subject] - by Nikolee - 05-05-2012, 11:47 AM
[No subject] - by someone - 05-05-2012, 12:26 PM
[No subject] - by HateMe - 05-05-2012, 12:30 PM
[No subject] - by Nikolee - 05-05-2012, 12:37 PM
[No subject] - by HateMe - 05-05-2012, 01:11 PM
[No subject] - by Nikolee - 05-05-2012, 10:57 PM
[No subject] - by someone - 05-05-2012, 11:37 PM
[No subject] - by Nikolee - 05-06-2012, 04:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)