Browse Source

Handle ProjectStartException when starting project with profiler.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5772 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 15 years ago
parent
commit
f3999228f2
  1. 9
      src/AddIns/Misc/Profiler/Frontend/AddIn/Src/ProfilerRunner.cs

9
src/AddIns/Misc/Profiler/Frontend/AddIn/Src/ProfilerRunner.cs

@ -135,7 +135,14 @@ namespace ICSharpCode.Profiler.AddIn
return null; return null;
} }
ProfilerRunner runner = new ProfilerRunner(currentProj.CreateStartInfo(), true, writer); ProcessStartInfo startInfo;
try {
startInfo = currentProj.CreateStartInfo();
} catch (ProjectStartException ex) {
MessageService.ShowError(ex.Message);
return null;
}
ProfilerRunner runner = new ProfilerRunner(startInfo, true, writer);
return runner; return runner;
} }

Loading…
Cancel
Save