Completed
Last Updated: 02 Feb 2015 07:49 by Jesse Dyck
ADMIN
Stefan
Created on: 14 Jan 2013 06:52
Category: Dock
Type: Bug Report
2
FIX. RadDock - exception when disposing a closed dialog with RadDock on it
Steps to reproduce:
- Create a form with RadDock on it
- Use the following code in another form:
       Using frm As New FormWithDock()
            frm.ShowDialog()
        End Using
- Close the dialog (FormWithDock) -> exception is thrown

WORKAROUND - dispose the dock on form closing:
    Protected Overrides Sub OnClosing(e As System.ComponentModel.CancelEventArgs)
        RadDock1.Dispose()

        MyBase.OnClosing(e)
    End Sub
1 comment
Jesse Dyck
Posted on: 16 Jan 2013 08:25
I also found this and can sometimes manifest itself as the following exception

  at System.Drawing.Region.GetHrgn(Graphics g)
 
   at System.Windows.Forms.Control.GetHRgn(Region region)
 
   at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)