Browse Source

ExceptionBox is not used if #D is started under debugger

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@98 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 21 years ago
parent
commit
a1aaf01a8a
  1. 6
      src/Main/StartUp/Project/SharpDevelopMain.cs

6
src/Main/StartUp/Project/SharpDevelopMain.cs

@ -83,6 +83,9 @@ namespace ICSharpCode.SharpDevelop @@ -83,6 +83,9 @@ namespace ICSharpCode.SharpDevelop
[STAThread()]
public static void Main(string[] args)
{
if (Debugger.IsAttached) {
Run(args);
} else {
try {
Run(args);
} catch (Exception ex) {
@ -90,6 +93,7 @@ namespace ICSharpCode.SharpDevelop @@ -90,6 +93,7 @@ namespace ICSharpCode.SharpDevelop
Application.Run(new ExceptionBox(ex));
}
}
}
static void Run(string[] args)
{
@ -110,7 +114,9 @@ namespace ICSharpCode.SharpDevelop @@ -110,7 +114,9 @@ namespace ICSharpCode.SharpDevelop
SplashScreenForm.SplashScreen.Show();
}
if (!Debugger.IsAttached) {
Application.ThreadException += new ThreadExceptionEventHandler(ShowErrorBox);
}
// TODO:
// bool ignoreDefaultPath = false;

Loading…
Cancel
Save