shana / paint-mono

Automatically exported from code.google.com/p/paint-mono
Other
22 stars 13 forks source link

Crashes when fast press keyboard shortcut. #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start paintdotnet
2. press (fast) key f,a,f,a 
3.

What is the expected output? What do you see instead?
Expected: Probably SaveAs dialog with filename "fa".
Current: Crash

What version of the product are you using? On what operating system?
paint-mono r63

Please provide any additional information below.

Unhandled Exception: System.InvalidOperationException: ScratchSurface
already borrowed: 'PaintDotNet.DocumentWorkspace.DoSaveAs() handing off
scratch surface to DoSaveAsDialog()' (trying to borrow for:
'PaintDotNet.DocumentWorkspace.DoSaveAs() handing off scratch surface to
DoSaveAsDialog()')
  at PaintDotNet.DocumentWorkspace.BorrowScratchSurface (System.String
reason) [0x00000] 
  at PaintDotNet.DocumentWorkspace.DoSaveAs () [0x00000] 
  at (wrapper remoting-invoke-with-check)
PaintDotNet.DocumentWorkspace:DoSaveAs ()
  at PaintDotNet.Menus.FileMenu.MenuFileSaveAs_Click (System.Object sender,
System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e)
[0x00000] 
  at PaintDotNet.PdnMenuItem.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripItem.PerformClick () [0x00000] 
  at System.Windows.Forms.ToolStripMenuItem.ProcessMnemonic (Char charCode)
[0x00000] 
  at System.Windows.Forms.ToolStrip.ProcessMnemonic (Char charCode) [0x00000] 
  at System.Windows.Forms.ToolStripDropDown.ProcessMnemonic (Char charCode)
[0x00000] 
  at System.Windows.Forms.Control.ProcessControlMnemonic (Char charCode)
[0x00000] 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Form.ShowDialog (IWin32Window ownerWin32) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Form:ShowDialog (System.Windows.Forms.IWin32Window)
  at System.Windows.Forms.CommonDialog.ShowDialog (IWin32Window owner)
[0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.CommonDialog:ShowDialog
(System.Windows.Forms.IWin32Window)
  at PaintDotNet.SystemLayer.UI.ShowFileDialogWithThumbnailView
(System.Windows.Forms.Control owner, System.Windows.Forms.FileDialog fd)
[0x00000] 
  at PaintDotNet.DocumentWorkspace.ShowFileDialog
(System.Windows.Forms.Control owner, System.Windows.Forms.FileDialog fd)
[0x00000] 
  at PaintDotNet.DocumentWorkspace.DoSaveAsDialog (System.String&
newFileName, PaintDotNet.FileType& newFileType,
PaintDotNet.SaveConfigToken& newSaveConfigToken, PaintDotNet.Surface
saveScratchSurface) [0x00000] 
  at PaintDotNet.DocumentWorkspace.DoSaveAs () [0x00000] 
  at (wrapper remoting-invoke-with-check)
PaintDotNet.DocumentWorkspace:DoSaveAs ()
  at PaintDotNet.Menus.FileMenu.MenuFileSaveAs_Click (System.Object sender,
System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e)
[0x00000] 
  at PaintDotNet.PdnMenuItem.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripItem.PerformClick () [0x00000] 
  at System.Windows.Forms.ToolStripMenuItem.ProcessMnemonic (Char charCode)
[0x00000] 
  at System.Windows.Forms.ToolStrip.ProcessMnemonic (Char charCode) [0x00000] 
  at System.Windows.Forms.ToolStripDropDown.ProcessMnemonic (Char charCode)
[0x00000] 
  at System.Windows.Forms.Control.ProcessControlMnemonic (Char charCode)
[0x00000] 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
mainForm) [0x00000] 
  at PaintDotNet.Startup.StartPart2 () [0x00000] 
  at PaintDotNet.Startup.Start () [0x00000] 
  at PaintDotNet.Startup.Main (System.String[] args) [0x00000] 

Original issue reported on code.google.com by limu...@gmail.com on 17 May 2009 at 5:50