Hi,
When I enter Japanese Kana character in WPF TextBox soon after setting Focus, System.Environment.FailFast Exception is occuring.
The following details is obtained from event log,
場所 System.Environment.FailFast(System.String)場所 MS.Internal.Invariant.FailFast(System.String, System.String)
場所 System.Windows.Controls.TextBoxView.System.Windows.Documents.ITextView.GetRectangleFromTextPosition(System.Windows.Documents.ITextPointer)
場所 System.Windows.Documents.CompositionAdorner+AttributeRange.AddCompositionLines()
場所 System.Windows.Documents.CompositionAdorner.InvalidateAdorner()
場所 System.Windows.Documents.TextServicesDisplayAttributePropertyRanges.OnEndEdit(ITfContext, Int32, ITfEditRecord)
場所 System.Windows.Documents.TextServicesProperty.OnEndEdit(ITfContext, Int32, ITfEditRecord)
場所 System.Windows.Documents.TextStore.MS.Win32.UnsafeNativeMethods.ITfTextEditSink.OnEndEdit(ITfContext, Int32, ITfEditRecord)
場所 MS.Win32.UnsafeNativeMethods+ITextStoreACPSink.OnLockGranted(LockFlags)
場所 System.Windows.Documents.TextStore.GrantLock()
場所 System.Windows.Documents.TextStore.GrantLockWorker(LockFlags)
場所 System.Windows.Documents.TextStore.RequestLock(LockFlags, Int32 ByRef)
場所 MS.Win32.UnsafeNativeMethods+ITfKeystrokeMgr.KeyDown(Int32, Int32, Boolean ByRef)
場所 System.Windows.Input.TextServicesContext.Keystroke(Int32, Int32, KeyOp)
場所 System.Windows.Input.TextServicesManager.TextServicesKeystroke(System.Windows.Input.TextServicesContext, System.Windows.Input.KeyEventArgs, Boolean)
場所 System.Windows.Input.TextServicesManager.PostProcessInput(System.Object, System.Windows.Input.ProcessInputEventArgs)
場所 System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler, System.Windows.Input.ProcessInputEventArgs)
場所 System.Windows.Input.InputManager.ProcessStagingArea()
場所 System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
場所 System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
場所 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawKeyboardActions, Int32, Boolean, Boolean, Int32)
場所 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(System.Windows.Interop.MSG ByRef, Boolean ByRef)
場所 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(System.Windows.Interop.MSG ByRef, System.Windows.Input.ModifierKeys)
場所 System.Windows.Interop.HwndSource.OnPreprocessMessage(System.Object)
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
場所 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
場所 System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
場所 System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(System.Windows.Interop.MSG ByRef, Boolean ByRef)
場所 System.Windows.Interop.HwndSource+WeakEventPreprocessMessage.OnPreprocessMessage(System.Windows.Interop.MSG ByRef, Boolean ByRef)
場所 System.Windows.Interop.ThreadMessageEventHandler.Invoke(System.Windows.Interop.MSG ByRef, Boolean ByRef)
場所 System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(System.Windows.Interop.MSG ByRef)
場所 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
場所 System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
場所 System.Windows.Application.RunDispatcher(System.Object)
場所 System.Windows.Application.RunInternal(System.Windows.Window)
場所 System.Windows.Application.Run(System.Windows.Window)
場所 CommonPlatforms.Program.PlatfomrProcessStart(System.String[])
場所 CommonPlatforms.Program.Main(System.String[])
PC Details:
OS - Windows 7 Japanese OS
Items Installed :
Microsoft .NET Framework 4 Client Profile
Microsoft .NET Framework 4 Client Profile Language Pack - 日本語(Japanese)
Microsoft .NET Framework 4 Extended
Microsoft .NET Framework 4 Extended Language Pack - 日本語(Japanese)
Can anyone provide me the rootcause and solution to this issue?
Is there any hotfix or update from Microsoft to solve this issue?