Hi,
I found a little bug which was crashing my applications using BookmarkDeleteMarkers function. The implementation for the function is something like
if eobj <> nil then begin eobj.Free; par1 := eobj.ParentPar; end else par1 := nil;
Which is incorrect and should have been something like
if eobj <> nil then
begin
par1 := eobj.ParentPar;
eobj.Free;
end else par1 := nil;
ParentPar should have been assigned to par1 before deleting the object eobj. Just to replicate this make a file with atleast 200 bookmarks and then delete them. [/code]
#1
♥ 0