We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

f25893_VBColoredTabs sample application gives exception on exit

Thread ID:

Created:

Updated:

Platform:

Replies:

33041 Aug 11,2005 11:20 AM Aug 12,2005 04:51 AM Windows Forms 2
loading
Tags: Tools
Hamish Gunn
Asked On August 11, 2005 11:20 AM

I downloaded and ran the sample application for changing Docked Tab colors. However when I ran it (debug mode, XP Pro Sp1) I get an exception on closing. Here is a sample from the error log: Event Type: Error Event Source: Application Error Event Category: None Event ID: 1000 Date: 11/08/2005 Time: 16:03:24 User: N/A Computer: PROTEUS Description: Faulting application f25893_vbcoloredtabs.exe, version 1.0.2049.27048, faulting module kernel32.dll, version 5.1.2600.153, fault address 0x00039282.

Vijayanand S [Syncfusion]
Replied On August 12, 2005 04:31 AM

Hi, Please try to explicitly dispose the docking manager and its associated controls when the modal window closes. Sometime a crash can occur by improper disposal of the DockingManager, which we believe is due to the inability of the .NET framework to dispose the windows hooks correctly when the control is disposed. Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing Dim ienum As IEnumerator = Me.dockingManager1.Controls Dim dockedctrls As ArrayList = New ArrayList() Do While ienum.MoveNext() dockedctrls.Add(ienum.Current) Loop For Each ctrl As Control In dockedctrls Me.dockingManager1.SetEnableDocking(ctrl, False) ctrl.Dispose() Next ctrl Me.dockingManager1.Dispose() End Sub Try this modified sample and let me know if it helps. Thanks for your patience. Thanks, Vijay >I downloaded and ran the sample application for changing Docked Tab colors. However when I ran it (debug mode, XP Pro Sp1) I get an exception on closing. > >Here is a sample from the error log: >Event Type: Error >Event Source: Application Error >Event Category: None >Event ID: 1000 >Date: 11/08/2005 >Time: 16:03:24 >User: N/A >Computer: PROTEUS >Description: >Faulting application f25893_vbcoloredtabs.exe, version 1.0.2049.27048, faulting module kernel32.dll, version 5.1.2600.153, fault address 0x00039282. > >

Hamish Gunn
Replied On August 12, 2005 04:51 AM

Excellent - it works a treat. Many thanks for the quick service.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;