Form loding Thread kill ??

2 posts, 0 answers
  1. sangki
    sangki avatar
    9 posts
    Member since:
    Apr 2009

    Posted 03 Jun 2009 Link to this post

    The exception occurs when I closed the window in thr form-activated state.

    main

    {
        Thread th = new Thread();
        th = new Thread(StartSetting);
        th.IsBackground = false;
        th.Start();
    }

    public void StartSetting()
    {
        RadForm rf = new RadForm();
        rf.ShowDialog();
    }

    rf Loading.... <---
    main() kill <---
    show exception <--
    ====================================================================================

    ---------------------------

    ---------------------------
    Error loading theme from resource Mworks.MSOffice.Toolbar.Client.Process.Theme.ButtonTheme.xml: System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

       위치: Telerik.WinControls.XmlTheme.DeserializePartiallyThemeFromReader(XmlReader reader, String themeLocation)

       위치: Telerik.WinControls.XmlTheme.LoadPartiallyFromStorage(ThemeSource themeSource)
    ---------------------------
    확인  
    ---------------------------

    ---------------------------

    ---------------------------
    Error applying theme to an element of type Telerik.WinControls.RootRadElement that is part of control: Telerik.WinControls.UI.RadButton. Theme builder: Telerik.WinControls.DefaultStyleBuilder. Theme file location: . Exception details:System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

       위치: System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)

       위치: Telerik.WinControls.StyleSheet.ProcessStyle(RadElement rootElement, Boolean isDynamicallyAddedElement)

       위치: Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.RootRadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.RadObject.UpdateEffectiveValue(RadProperty dp, RadPropertyMetadata metadata, Boolean isCoerceValue, Boolean isOldValueValid, Object oldValue, ValueSource oldValueSource, Boolean oldValueIsDeferred, Boolean coerceWithDeferredReference)

       위치: Telerik.WinControls.RadObject.SetValueCommon(RadProperty dp, Object value, RadPropertyMetadata metadata, Boolean coerceWithDeferredReference)

       위치: Telerik.WinControls.RadObject.SetValue(RadProperty dp, Object value)

       위치: Telerik.WinControls.StyleBuilderBase.BuildStyle(RadElement element)

       위치: Telerik.WinControls.RadElement.ApplyTheme()
    ---------------------------
    확인  
    ---------------------------

    ---------------------------

    ---------------------------
    Error applying theme to an element of type Telerik.WinControls.RootRadElement that is part of control: Telerik.WinControls.UI.RadButton. Theme builder: Telerik.WinControls.DefaultStyleBuilder. Theme file location: . Exception details:System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

       위치: System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       위치: System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       위치: System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

       위치: System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

       위치: System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)

       위치: System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)

       위치: System.Drawing.ColorConverter.FillConstants(Hashtable hash, Type enumType)

       위치: System.Drawing.ColorConverter.get_SystemColors()

       위치: System.Drawing.ColorConverter.GetNamedColor(String name)

       위치: System.Drawing.ColorConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

       위치: System.ComponentModel.TypeConverter.ConvertFromString(ITypeDescriptorContext context, CultureInfo culture, String text)

       위치: Telerik.WinControls.XmlSerialization.ObjectSerializationInfo.ConvertFromString(String value)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

       위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

       위치: Telerik.WinControls.PartiallyLoadedStyleSheet.get_PropertySettingGroups()

       위치: Telerik.WinControls.StyleSheet.ProcessStyle(RadElement rootElement, Boolean isDynamicallyAddedElement)

       위치: Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.RootRadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

       위치: Telerik.WinControls.RadObject.UpdateEffectiveValue(RadProperty dp, RadPropertyMetadata metadata, Boolean isCoerceValue, Boolean isOldValueValid, Object oldValue, ValueSource oldValueSource, Boolean oldValueIsDeferred, Boolean coerceWithDeferredReference)

       위치: Telerik.WinControls.RadObject.SetValueCommon(RadProperty dp, Object value, RadPropertyMetadata metadata, Boolean coerceWithDeferredReference)

       위치: Telerik.WinControls.RadObject.SetValue(RadProperty dp, Object value)

       위치: Telerik.WinControls.StyleBuilderBase.BuildStyle(RadElement element)

       위치: Telerik.WinControls.RadElement.ApplyTheme()
    ---------------------------
    확인  
    ---------------------------

  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 03 Jun 2009 Link to this post

    Hi Sangki,

    Thanks for writing and for the code provided. However, the details you sent to me did not help me to reproduce this exception. I would like to ask you for more details on your case like the behavior that you would like to implement and the controls that you have on your RadForm? I would much appreciate a simple Windows Forms application that reproduces the exception so that I can investigate it and determine the reason for it. Thanks for your time. I am looking forward to receiving the requested details.

    Best wishes,
    Deyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top