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

Cutting RadDocument forces Visual Studio crash

1 Answer 45 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 19 Aug 2011, 01:19 PM
Hi, guys.      

When I'm in design mode in VS and editing something like the code fragment below after doing Cut operation for ViewManager.Document tag content causes Visual studio 2010 to crash. I've tested this on 2011.2 and 2011.1 releases:
<telerik:DocumentViewManager>
            <telerik:DocumentViewManager.Document>
               <telerik:RadDocument>
                  <telerik:Section>
                     <telerik:Table Background="#FF000000" Borders="1,None,#FF000000" GridColumnWidthsSerializationInfo="Auto;Auto" LayoutMode="AutoFit" PreferredWidth="Auto">
                        <telerik:TableRow>
                           <telerik:TableCell Background="#FFFFFFFF" Borders="1,Single,#FF000000" ColumnSpan="1" Padding="3,3,3,3" PreferredWidth="Auto" RowSpan="1">
                              <telerik:Paragraph FontSize="11">
                                 <telerik:Span FontFamily="Portable User Interface" FontSize="11" Text="test" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                              </telerik:Paragraph>
                           </telerik:TableCell>
                           <telerik:TableCell Background="#FFFFFFFF" Borders="1,Single,#FF000000" ColumnSpan="1" Padding="3,3,3,3" PreferredWidth="Auto" RowSpan="1">
                              <telerik:Paragraph FontSize="11">
                                 <telerik:Span FontFamily="Portable User Interface" FontSize="11" Text="fitst" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                              </telerik:Paragraph>
                              <telerik:Paragraph FontSize="11">
                                 <telerik:Span FontFamily="Portable User Interface" FontSize="11" Text="poiuo" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                              </telerik:Paragraph>
                              <telerik:Paragraph FontSize="11">
                                 <telerik:Span FontFamily="Portable User Interface" FontSize="11" Text="third" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                              </telerik:Paragraph>
                              <telerik:Paragraph FontSize="11">
                                 <telerik:Span FontFamily="Portable User Interface" FontSize="11" Text="sds" UnderlineColor="#FF000000" UnderlineDecoration="None" />
                              </telerik:Paragraph>
                           </telerik:TableCell>
                        </telerik:TableRow>
                     </telerik:Table>
                  </telerik:Section>
               </telerik:RadDocument>
            </telerik:DocumentViewManager.Document>
         </telerik:DocumentViewManager>

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 24 Aug 2011, 01:50 PM
Hello Alexander,
The problem is caused by the fact that DocumentViewManager does not accept null values for the Document property. We will modify it to throw more user-friendly exception for the next minor release.
The points in your account have been updated in appreciation for this bug report.

Best wishes,
Boby
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

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