Closed GoogleCodeExporter closed 9 years ago
You might need to be more specific, using your bot running via
monoaimoduleloader.exe I can restart as many times as I want without crashing.
Which bot is having trouble restarting.
Original comment by dpershouse@gmail.com
on 29 Oct 2010 at 2:00
Issue 11 has been merged into this issue.
Original comment by dpershouse@gmail.com
on 29 Oct 2010 at 2:01
This issue is now for both embedded and clr. Still cannot reproduce.
Original comment by dpershouse@gmail.com
on 29 Oct 2010 at 2:02
To get more info on the crash, you can run your clr-client bot via commandline
or in your bot.cs file implement a last chance handler which logs to a file:
eg
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.UnhandledException += new EventHandler(LastChanceHandler);
void LastChanceHandler(object sender, UnhandledExceptionEventArgs args)
{
Exception ex = ((Exception)(args.ExceptionObject));
Logging.WriteLine("****** LastChanceHandler ******");
Logging.WriteLine("ExceptionType: {0}", ex.GetType().Name);
Logging.WriteLine("HelpLine: {0}", ex.HelpLink);
Logging.WriteLine("Message: {0}", ex.Message);
Logging.WriteLine("Source: {0}", ex.Source);
Logging.WriteLine("StackTrace: {0}", ex.StackTrace);
Logging.WriteLine("TargetSite: {0}", ex.TargetSite);
}
Original comment by dpershouse@gmail.com
on 29 Oct 2010 at 2:13
This is a known limitation of mono. No known work around as of yet.
Original comment by tjmonk15
on 1 Nov 2010 at 2:15
Ok, I have added your test exeption handling code, but there was an error with
new EventHandler, it should have been a new UnhandledExceptionEventHandler.
I have uploaded a screenshot from the CMD, but as you can see it disconnects
after I press restart in the StarCraft game, instead of StarTing Match! again.
I'm not sure why it works for you and not for me.
Original comment by twsandb...@gmail.com
on 1 Nov 2010 at 10:04
Attachments:
Ahh, thats because the bot is programmed to do that. It is just to show how to
write a very simple bot.
Original comment by dpershouse@gmail.com
on 2 Nov 2010 at 3:47
Original comment by dpershouse@gmail.com
on 3 Nov 2010 at 11:26
Original issue reported on code.google.com by
twsandb...@gmail.com
on 29 Oct 2010 at 8:48