Leak Using rvActionOpen
Leak Using rvActionOpen
Sergey,
I'm still using rve version 21.7.3. When using an rvActionOpen to open a Word docx file, it opens OK, but I'm getting a leak reported by madexcept in TRVCPInfo (see attached screenshot) when I close the app. This seems to only happen with Word files, but I haven't tried it with every possible file type. Seems to be OK using a text or rvf file. Just docx files are causing the leak whether I open them or drag and drop them in.
I used the ActionTestUni demo to make sure it wasn't something I introduced in the code.
Thanks Sergey
Stan
I'm still using rve version 21.7.3. When using an rvActionOpen to open a Word docx file, it opens OK, but I'm getting a leak reported by madexcept in TRVCPInfo (see attached screenshot) when I close the app. This seems to only happen with Word files, but I haven't tried it with every possible file type. Seems to be OK using a text or rvf file. Just docx files are causing the leak whether I open them or drag and drop them in.
I used the ActionTestUni demo to make sure it wasn't something I introduced in the code.
Thanks Sergey
Stan
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Leak Using rvActionOpen
Can you send me a DocX file where it happens?
Re: Leak Using rvActionOpen
Hi Sergey,
I sent one to the richview gmail account.
Stan
Re: Leak Using rvActionOpen
Sergey, Here's a typical docx file I had trouble with:
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Leak Using rvActionOpen
I confirm the problem.
Quick fix (VCL/LCL version):
Open RVRTFProps.pas
Change the code starting from the line 2764 from
to
Quick fix (VCL/LCL version):
Open RVRTFProps.pas
Change the code starting from the line 2764 from
Code: Select all
if (InsertPoint > 0) and item.SameAsPrev and (item.StyleNo >= 0) and
(CurrentRVData.GetItemStyle(InsertPoint - 1)= item.StyleNo)
then
Code: Select all
if (InsertPoint > 0) and item.SameAsPrev and (item.StyleNo >= 0) and
(CurrentRVData.GetItemStyle(InsertPoint - 1) = item.StyleNo) and
(item.Checkpoint = nil) then
Re: Leak Using rvActionOpen
Thanks Sergey, that seems to have fixed it!
Stan
Stan
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Leak Using rvActionOpen
The fix is included in TRichView 22.1.1 (currently available only for registered users)
Re: Leak Using rvActionOpen
Thanks Sergey. You probably mean it's in 22.1.1?
Stan
Stan
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Leak Using rvActionOpen
Yes, you are right. I corrected it.