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

InsertFragment raises StackOverflowException

2 Answers 48 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Axelle
Top achievements
Rank 1
Axelle asked on 25 Nov 2014, 10:51 AM
Hello, 

I'm trying to merge document parts from different sources using DocumentFragments. 
This works just fine except when my document is imported from html. 

Whenever I run the editor.InsertFragment on that type of document, a StackOverflowException is raised. 

Is there any way to know more about the exception, or to prevent it ?

2 Answers, 1 is accepted

Sort by
0
Axelle
Top achievements
Rank 1
answered on 25 Nov 2014, 04:28 PM
Investigating more, this seems much more random.

The error seems to pop whenever I insert something in a specific place in a table (using 
     
        doc.Selection.SelectAnnotationRange(bookmark);
        doc.Delete(false);
        editor.Insert(" "); 

with a bookmark inside a table.
0
Todor
Telerik team
answered on 27 Nov 2014, 01:51 PM
Hello Axelle,

I've tried to reproduce the problem, but to no avail.
Please, can you try to isolate the issue in a sample project and send it to us? If the issue is caused by a specific document, it will be great if you can share it with us as well. In this way it will be much easier for us to find what causes the problem and resolve it.

Looking forward to your reply.

Regards,
Todor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
RichTextBox
Asked by
Axelle
Top achievements
Rank 1
Answers by
Axelle
Top achievements
Rank 1
Todor
Telerik team
Share this question
or