Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

NullReferenceExceptionwith custom dialog view - RapidSpell WPF - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
mkoonstra
#1 Posted : Friday, June 15, 2012 4:56:11 AM
Rank: Member

Groups: Registered

Joined: 6/14/2012
Posts: 8
I have a custom dialog view, but when there are no spelling errors, the following exeption occurs:

System.NullReferenceException occurred
Message=Object reference not set to an instance of an object.
Source=Keyoti4.RapidSpell.WPF
StackTrace:
at Keyoti.RapidSpell.Wpf.RapidSpellGUIPresenter.p()
InnerException:

Any ideas why this might be happening?
Jim
#2 Posted : Friday, June 15, 2012 1:34:25 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Hi, I need more info please - the full stack trace may help, but also understanding what you're doing. The code for the custom dialog would be helpful The best would be a simple mockup that uses your custom dialog, so I can see it happening.

If you want to send anything you could use http://mediafire.com

Thanks
Jim

-your feedback is helpful to other users, thank you!

Evaluation Downloads
-your feedback is helpful to other users, thank you!


mkoonstra
#3 Posted : Wednesday, June 20, 2012 9:53:39 AM
Rank: Member

Groups: Registered

Joined: 6/14/2012
Posts: 8
I cannot make a mockup, the only thing I have is a stacktrace for you.


Keyoti4.RapidSpell.WPF.dll!Keyoti.RapidSpell.Wpf.RapidSpellGUIPresenter.p() + 0x6f bytes
Keyoti4.RapidSpell.WPF.dll!Keyoti.RapidSpell.Wpf.RapidSpellGUIPresenter.Remove() + 0xcb bytes
Keyoti4.RapidSpell.WPF.dll!Keyoti.RapidSpell.Wpf.RapidSpellDialog.Check() + 0x1352 bytes
Keyoti4.RapidSpell.WPF.dll!Keyoti.RapidSpell.Wpf.RapidSpellDialog.RSListenerEnd(object A_0, Keyoti.RapidSpell.Wpf.Event.SpellCheckEventArgs A_1) + 0x1a2 bytes
Keyoti4.RapidSpell.WPF.dll!Keyoti.RapidSpell.Wpf.RapidSpellDialog.Check() + 0x13b8 bytes
> ChipSoft.Ezis.Ddr.dll!ChipSoft.Ezis.Ddr.SpellCheck.SpellCheckDialogCommand.SpellCheckDialogCommandExecute(object parameter) Line 111 + 0xe bytes C#
ChipSoft.Core.Presentation.dll!ChipSoft.Core.Presentation.RelayCommand.Execute(object parameter) Line 105 + 0x11 bytes C#
ChipSoft.Core.Presentation.dll!ChipSoft.Core.Presentation.ViewCommand.ExecuteRelayUICommand(object parameter) Line 205 + 0x19 bytes C#
ChipSoft.Core.Presentation.dll!ChipSoft.Core.Presentation.ViewCommand.System.Windows.Input.ICommand.Execute(object parameter) Line 200 + 0x11 bytes C#
PresentationFramework.dll!MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource commandSource, bool userInitiated) + 0xb4 bytes
PresentationFramework.dll!System.Windows.Controls.Primitives.ButtonBase.OnClick() + 0x54 bytes
PresentationFramework.dll!System.Windows.Controls.Button.OnClick() + 0x4d bytes
PresentationFramework.dll!System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs e) + 0x9e bytes
PresentationCore.dll!System.Windows.UIElement.OnMouseLeftButtonUpThunk(object sender, System.Windows.Input.MouseButtonEventArgs e) + 0x6c bytes
PresentationCore.dll!System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget) + 0x31 bytes
PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x29 bytes
PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x3e bytes
PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) + 0xbe bytes
PresentationCore.dll!System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args, System.Windows.RoutedEvent newEvent) + 0x114 bytes
PresentationCore.dll!System.Windows.UIElement.OnMouseUpThunk(object sender, System.Windows.Input.MouseButtonEventArgs e) + 0xc5 bytes
PresentationCore.dll!System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget) + 0x31 bytes
PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x29 bytes
PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x3e bytes
PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) + 0xbe bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) + 0x79 bytes
PresentationCore.dll!System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs args) + 0x41 bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args, bool trusted) + 0x2c bytes
PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x1ff bytes
PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) + 0x45 bytes
PresentationCore.dll!System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport) + 0x62 bytes
PresentationCore.dll!System.Windows.Interop.HwndMouseInputProvider.ReportInput(System.IntPtr hwnd, System.Windows.Input.InputMode mode, int timestamp, System.Windows.Input.RawMouseActions actions, int x, int y, int wheel) + 0x2c2 bytes
PresentationCore.dll!System.Windows.Interop.HwndMouseInputProvider.FilterMessage(System.IntPtr hwnd, MS.Internal.Interop.WindowMessage msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x67d bytes
PresentationCore.dll!System.Windows.Interop.HwndSource.InputFilterMessage(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x75 bytes
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0xbe bytes
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7d bytes
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x53 bytes
WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x42 bytes
WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xb4 bytes
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x104 bytes
[Native to Managed Transition]
[Managed to Native Transition]
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) + 0xc1 bytes
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) + 0x49 bytes
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) + 0x5b bytes
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x74 bytes
PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) + 0x2b bytes
PresentationFramework.dll!System.Windows.Application.Run() + 0x1b bytes
QuickEzis.exe!QuickEzis.App.Main() + 0x5e bytes
Jim
#4 Posted : Wednesday, June 20, 2012 3:56:26 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
I can only guess, without a mockup - looks like maybe the DialogView property in the RapidSpellGUIPresenter is null when the exception occurs. Sounds related to your custom view. Can you look at RapidSpellDialog.UserInterfaceFormPresenter.DialogView and see if I'm right?

More info is useful.

-your feedback is helpful to other users, thank you!

Evaluation Downloads
-your feedback is helpful to other users, thank you!


mkoonstra
#5 Posted : Thursday, June 21, 2012 5:54:50 AM
Rank: Member

Groups: Registered

Joined: 6/14/2012
Posts: 8
I just updated to v3.0 and the exception seems to be gone. When I encounter it again, I will keep you posted.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.