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

Dispatcher process has been suspended, but messages are still being processed.

4 Answers 339 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Anu
Top achievements
Rank 1
Anu asked on 17 Oct 2013, 08:56 AM
Hi,

We have an office word template project which opens up a wpf form when the user tries to launch it. 

The WPF form has one or more telerik Richtextbox controls. When the user start typing inside the textbox they get the above error.
ie."The dispatcher process has been suspended,but messages are still being processed.".

Even though this error occurs more when user tries to type fast inside the textbox, there are cases this happened even otherwise.

There is no event in our code that gets fired on TextChanged or anything similar.

Has anyone else experienced this?  Could someone help me to resolve this?

Many thanks,

Anu
Alan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 22 Jan 2024, 07:17 PM | edited

Same issue here. Create VSTO project, add WPF form, add RadAutoCompleteBox. Start typing, watch it auto-suggest, then backspace fast. 

VSTO requires .NET Framework. I am testing on 4.8 and latest Telerik.

Code for RadAutoCompleteBox:


                <telerik:RadAutoCompleteBox 
                    x:Name="SearchAutoCompleteBox"
                    TextBoxStyle="{StaticResource AutoCompleteCustomTextBoxStyle}"  MinHeight="28"
                    VerticalAlignment="Center"
                    Width="400"
                    Margin="5"
                    WatermarkContent="Search templates"
                    ItemsSource="{Binding AllTemplates}" 
                    TextSearchPath="Name"
                    DisplayMemberPath="Name"
                    NoResultsContent="No Matches"
                    TextSearchMode="Contains"
                    AutoCompleteMode="Suggest"
                    SelectionMode="Single"
                    SelectionChanged="SearchAutoCompleteBox_OnSelectionChanged"
                >
                    <telerik:RadAutoCompleteBox.DropDownItemTemplate>
                        <DataTemplate>
                            <telerik:RadHighlightTextBlock Text="{Binding Name}"
                                                           Width="241"
                                                           HorizontalAlignment="Left"
                                                           HighlightMode="AllMatches"
                                                           HighlightBackground="#0099CC"
                                                           HighlightForeground="White"
                                                           IsCaseSensitive="False"
                                                           TextWrapping="Wrap"
                                                           HighlightText="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadAutoCompleteBox}, Path=SearchText}"/>
                        </DataTemplate>
                    </telerik:RadAutoCompleteBox.DropDownItemTemplate>
                </telerik:RadAutoCompleteBox>

 

Alan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 22 Jan 2024, 07:40 PM

Issue seems to be caused by this option. I have removed it for now:

HighlightText="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadAutoCompleteBox}, Path=SearchText}"/>

Vladimir Stoyanov
Telerik team
commented on 23 Jan 2024, 10:23 AM

I tested the described scenario in a excel VSTO addin, however I was not able to replicate the described behavior. That is why I am attaching the sample project that I used for testing purposes along with a gif showing my tests.

Can you check out the shared project and see how it differs from the setup on your end? Should you need any further assistance you can modify the project in order to demonstrate your scenario and send it back (you can create a separate forum post or open a new support ticket as this thread was originally for the RadRichTextBox control). This will hopefully allow us to reproduce the same scenario, investigate further and better assist you. 

Alan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 24 Jan 2024, 07:10 AM

Thanks Vladimir. I was able to create a test Word VSTO and could not reproduce. Since these are test projects, they don't have the complexity but I think I need to dig deeper.  I will post on the correct forum and reference this one.

4 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 22 Oct 2013, 10:36 AM
Hi Anu,
We were not able to reproduce the issue. Any additional information may help us track it:
  • Does your scenario include some special setup?
  • Could you reproduce the problem in simple project, containing only RadRichTextBox?
  • Are you able to reproduce the problem consistently - i.e. with some specific steps?
  • What is the version you are using?

Regards,
Boby
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Anu
Top achievements
Rank 1
answered on 25 Oct 2013, 02:29 PM
Hi Boby,

Thank you very much for your reply. I didn't attempt to reproduce this in a simple project - this is something I am planning to do next.

This problem occurs when I try to type in text very fast. I googled on this and can see that a lot of people are getting similar issues - but mostly when there is an event that gets fired. Here in my case there is I am not attaching any events.

We are using RadControls for WPF Q3 2011 SP1.

Thanks again,

Anu
0
Boby
Telerik team
answered on 30 Oct 2013, 07:34 AM
Hi Anu,
We were not able to reproduce the issue you mentioned. The version you are using is rather old and RadRichTextBox has evolved a lot since then; we would advice to try upgrading to newer version of the control and check if the issue is reproducible there. If the problem persists, please try to isolate it in a sample project and send it to us for further investigation.

Regards,
Boby
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Anu
Top achievements
Rank 1
answered on 04 Nov 2013, 09:26 AM
Thanks Boby. Our license has now expired. We will renew it and then will try and see if it helps.

regards,

Anu
Tags
RichTextBox
Asked by
Anu
Top achievements
Rank 1
Answers by
Boby
Telerik team
Anu
Top achievements
Rank 1
Share this question
or