Memoryleak in LoadFormFile(WithClear) because of bookmarks?

  • Hi Julian,

    I'm using your TWPRichText component in an application where frequent switching between different rtf-files is needed using the same TWPRichText instance. I've found my application leaking memory and I think I traced it back to using bookmarks.

    I'v got a minimal test rtf-file with just one sentence which is bookmarked, in rtf: ...{\*\bkmkstart h}Sentence{\*\bkmkend h}...

    When I load this file by LoadFromFileWithClear the memory usage jumps up with about 800kb. If I repeat this action with the same file, everytime the memory usages goes up about 800kb. If I delete the bookmark from the file no memory leak occurs.

    I hope you could help me solve of workaround this problem,
    thank you,
    Michel de Kok
    De Straat Milieu-adviseurs