Browse Source

fixed bugs in ProfileProject and ProfileExecutableForm

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3991 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Siegfried Pammer 16 years ago
parent
commit
a31f69864a
  1. 4
      src/AddIns/Misc/Profiler/Frontend/AddIn/Src/Commands/ProfileProject.cs
  2. 6
      src/AddIns/Misc/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml.cs

4
src/AddIns/Misc/Profiler/Frontend/AddIn/Src/Commands/ProfileProject.cs

@ -60,9 +60,9 @@ namespace ICSharpCode.Profiler.AddIn.Commands @@ -60,9 +60,9 @@ namespace ICSharpCode.Profiler.AddIn.Commands
WorkbenchSingleton.SafeThreadCall(updater);
};
runner.Run();
}
runner.Run();
}
static ProfilerRunner CreateRunner(IProfilingDataWriter writer)

6
src/AddIns/Misc/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml.cs

@ -41,9 +41,9 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs @@ -41,9 +41,9 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
@"ProfilingSessions\Session" +
DateTime.Now.ToString("yyyyMMdd_HHmmss", CultureInfo.InvariantCulture) + ".sdps");
Directory.CreateDirectory(Path.GetDirectoryName(outputPath));
try {
Directory.CreateDirectory(Path.GetDirectoryName(outputPath));
var runner = CreateRunner(txtExePath.Text, txtWorkingDir.Text, txtArgs.Text, new ProfilingDataSQLiteWriter(outputPath));
if (runner != null) {
@ -66,6 +66,8 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs @@ -66,6 +66,8 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
MessageService.ShowError(ex.Message);
} catch (DirectoryNotFoundException ex2) {
MessageService.ShowError(ex2.Message);
} catch (UnauthorizedAccessException ex4) {
MessageService.ShowError(ex4.Message);
} catch (Exception ex3) {
MessageService.ShowError(ex3);
}

Loading…
Cancel
Save