This is a migrated thread and some comments may be shown as answers.

Error while writing

3 Answers 66 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Oscar Arturo
Top achievements
Rank 1
Oscar Arturo asked on 30 Nov 2011, 01:55 PM
Hi! I'm using Q1 RadControls 2011, and I get an error when the users Write a caret, I used the AutomationUI to generate the wordprocessor, how can I solve this problem?

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 02 Dec 2011, 04:28 PM
Hello Oscar Arturo,

Could you provide some more details on the error that is thrown? Some more information on the text that you are typing could also be helpful.

Regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Oscar Arturo
Top achievements
Rank 1
answered on 07 Dec 2011, 12:26 PM
These are the details of the exception:

No se controló System.InvalidCastException
  Message=No se puede convertir un objeto de tipo 'System.Windows.Input.DeadCharTextComposition' al tipo 'System.Windows.Documents.FrameworkTextComposition'.
  Source=Telerik.Windows.Documents
  StackTrace:
       en Telerik.Windows.Documents.UI.Caret.OnTextInputUpdate(Object sender, TextCompositionEventArgs e) en c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Documents\UI\Caret.cs:línea 442
       en System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       en System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       en System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       en System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       en System.Windows.Input.InputManager.ProcessStagingArea()
       en System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       en System.Windows.Input.TextCompositionManager.UnsafeUpdateComposition(TextComposition composition)
       en System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
       en System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
       en System.Windows.Input.InputManager.ProcessStagingArea()
       en System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       en System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       en System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       en System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
       en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       en System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       en System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
       en System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)
       en System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
       en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       en System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       en System.Windows.Application.RunDispatcher(Object ignore)
       en System.Windows.Application.RunInternal(Window window)
       en System.Windows.Application.Run(Window window)
       en System.Windows.Application.Run()
       en DocProcRepEditor.App.Main() en C:\Users\PERLA\Documents\Visual Studio 2010\Projects\DocProcRepEditor\DocProcRepEditor\obj\x86\Debug\App.g.cs:línea 0
       en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

This occurs when the user tries to type in characters like á,é,í,ó,ú

0
Iva Toteva
Telerik team
answered on 12 Dec 2011, 02:58 PM
Hello Oscar Arturo,

There was indeed such a problem with the version of the controls you are using.

We have fixed it just after 2011 Q2, so if you upgrade to 2011 Q2 SP1 (2011.2.920) or the latest 2011 Q3 (2011.3.1116), the problem should no longer occur.

All the best,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Oscar Arturo
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Oscar Arturo
Top achievements
Rank 1
Share this question
or