This question is locked. New answers and comments are not allowed.
When stress-testing the auto complete text box, it is rather easy to produce an internal unhandled exception which then moves to the app's unhandled exception handler.
This exception is thrown in the internal code of the control, and not as a result of a method triggered by me. Is there any chance I can prevent the app from crashing until you can fix the issue?
For the autocomplete suggestions, I'm using a web service (geocoding in my case). The autocomplete text box is initialized similarly to your example app. Here some reference code:
Page constructor:
Two examples of uncought exceptions:
[Type]:[NullReferenceException]
[ExceptionMessage]:[Object reference not set to an instance of an object.]
[StackTrace]:[
at Telerik.Windows.Controls.AutoCompleteTextBox.AutoCompleteItem.OnManipulationCompleted(ManipulationCompletedEventArgs e)
at System.Windows.Controls.Control.OnManipulationCompleted(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)]
[InnerException]:[none]
[Type]:[NullReferenceException]
[ExceptionMessage]:[Object reference not set to an instance of an object.]
[StackTrace]:[
at Telerik.Windows.Controls.AutoCompleteTextBox.AutoCompleteItem.OnClick()
at Telerik.Windows.Controls.AutoCompleteTextBox.AutoCompleteItem.OnManipulationCompleted(ManipulationCompletedEventArgs e)
at System.Windows.Controls.Control.OnManipulationCompleted(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)]
[InnerException]:[none]
This exception is thrown in the internal code of the control, and not as a result of a method triggered by me. Is there any chance I can prevent the app from crashing until you can fix the issue?
For the autocomplete suggestions, I'm using a web service (geocoding in my case). The autocomplete text box is initialized similarly to your example app. Here some reference code:
Page constructor:
{
_autoCompleteProvider =
new
WebServiceAutoCompleteProvider();
SearchTextBox.InitSuggestionsProvider(_autoCompleteProvider);
_autoCompleteProvider.InputChanged += OnAutoCompleteProviderInputChanged;
}
private
void
OnAutoCompleteProviderInputChanged(
object
sender, EventArgs e)
{
_searchGeocodeQuery =
new
GeocodeQuery { SearchTerm = SearchTextBox.Text };
// ... async launch
}
Two examples of uncought exceptions:
[Type]:[NullReferenceException]
[ExceptionMessage]:[Object reference not set to an instance of an object.]
[StackTrace]:[
at Telerik.Windows.Controls.AutoCompleteTextBox.AutoCompleteItem.OnManipulationCompleted(ManipulationCompletedEventArgs e)
at System.Windows.Controls.Control.OnManipulationCompleted(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)]
[InnerException]:[none]
[Type]:[NullReferenceException]
[ExceptionMessage]:[Object reference not set to an instance of an object.]
[StackTrace]:[
at Telerik.Windows.Controls.AutoCompleteTextBox.AutoCompleteItem.OnClick()
at Telerik.Windows.Controls.AutoCompleteTextBox.AutoCompleteItem.OnManipulationCompleted(ManipulationCompletedEventArgs e)
at System.Windows.Controls.Control.OnManipulationCompleted(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)]
[InnerException]:[none]