Hi,
lijian wrote:
Hi all,
Recently I met a crash bug when using Writer. The bug can be described as
follows:
1.open the website http://www.sina.com;
2.crtl + A to select all the matters in the web page;
3.create a new writer document, and paste the selected matters in the manner of
"HTML format";
4.do "undo" operation,then we can see some remains not clearly removed in the
page;
5.click on the remains, and then the document will die.
I wasn't able to reproduce this problem, I tried several versions of OOo
and nothing remains at the page (step 4.). Which version and which OS
did you use?
Into the codes, I found there is a dead loop in "for" state in function
"BigPtrArray::Index2Block( ULONG pos )".
After debugging for some time, I didn't eaxctly get the reason. I guess that the value of "pos" is wrongly
passed . In fact, after the "undo" operation, all the matters inserted former should be removed and nothing
remains.
Anybody ever encountered similar problems?
Yes, I've fixed already some bugs in the undo area. The BigPtrArray
represents the document model, the undo saves and restores elements in
this array. If there is a bug and the indices of the undo operation does
not fit into the current array, crashes could occur. If you are able to
provide me a reproducable scenario with such crash, I'll be happy to
investigate into the reason. A bug document is always better than an URL
because URL content could change quiet quickly.
Best regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]