Browse Source

Show more friendly error message when trying to debug 64-bit executable.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6227 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 15 years ago
parent
commit
668e724440
  1. 8
      src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

8
src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

@ -195,7 +195,13 @@ namespace ICSharpCode.SharpDevelop.Services @@ -195,7 +195,13 @@ namespace ICSharpCode.SharpDevelop.Services
// UnauthorizedAccessException: Отказано в доступе. (Исключение из HRESULT: 0x80070005 (E_ACCESSDENIED))
if (e is COMException || e is BadImageFormatException || e is UnauthorizedAccessException) {
string msg = StringParser.Parse("${res:XML.MainMenu.DebugMenu.Error.CannotStartProcess}");
MessageService.ShowMessage(msg + " " + e.Message);
msg += " " + e.Message;
// TODO: Remove
if (e is COMException && ((uint)((COMException)e).ErrorCode == 0x80070032)) {
msg += Environment.NewLine + Environment.NewLine;
msg += "64-bit debugging is not supported. Please set Project -> Project Options... -> Compiling -> Target CPU to 32bit.";
}
MessageService.ShowMessage(msg);
if (DebugStopped != null)
DebugStopped(this, EventArgs.Empty);

Loading…
Cancel
Save