Page 1 of 1

Problem with tables imported from RTF

Posted: Thu Feb 01, 2007 1:26 pm
by badevlad
When I select and drag simple table from MS Word to RichViewEdit control it works well, until I start to work with it. If I do select content of cell and start type - I get AV in some cases. If I do some formatting of text in a cell - I get AV in some cases. If I trying to delete the whole table I get AV almost always.

If I do the same with HTML - it works just excellent. I can drag table from browser and edit it safely. There are only problem with tables from RTF.

I using the last version of RichView.

Posted: Thu Feb 01, 2007 1:46 pm
by Sergey Tkachenko
Please give me step by step instructions how to reproduce this problem.
In my test, all works as expected.

Posted: Thu Feb 01, 2007 1:56 pm
by badevlad
Can we speak via ICQ?

Just do the following. Create new application with RichViewEdit control, assign RVStyle to it and run.

Open MS Word and create simple table 3x3, type something in cells.

Select whole table and drag it from Word to your application and drop on RichViewEdit.

Then try to edit content of cells, make some parts of text in it bold/normal. On my side it creates exception.

Posted: Thu Feb 01, 2007 2:04 pm
by Sergey Tkachenko
I draged table 3x3 from Word 2003 to the ActionTest demo, selected cells , applied bold, deleted the first column... All worked without problems.

How do you apply bold in your application? Can you reproduce this problem in TRichView demos?
What version of TRichView do you use? (the latest may mean 1.9.24 or 1.9.31)

Posted: Thu Feb 01, 2007 2:10 pm
by badevlad
I am using 1.9.24 version. I can not reproduce such error in compiled demo from your site, but as I can see it is old enough. As for bold, I have made a mistake, I have tried it in another my test application.

Can you test it in v.1.9.24? You may do any actions in cells, and most often I get AV when deleting the whole table. As I can see, sometimes in RVData appears incorrect pointer (may be destroyed object?).

Posted: Thu Feb 01, 2007 2:19 pm
by Sergey Tkachenko
I cannot reproduce the problem with v1.9.24 as well.
Here is the ActionTest demo compiled with 1.9.24, it works ok in my side: http://www.trichview.com/support/files/ ... onTest.zip

Posted: Thu Feb 01, 2007 2:39 pm
by badevlad
It works well in your demo.

Thank you for help, I will try to find reason on my side.