New Forum | Previous | Next | (P-PDF) Developers
Topic: Acrobat crash when copy to clipboard
Conf: (P-PDF) Developers, Msg: 51284
Date: 5/29/2002 04:44 PM
Currently I am writing a plugin and parts of its functionality is to search of certain key words and highlight them. I have not problem get my code to find keywords and highlight them and ten scroll the document to the highlighted section. The problem arises when the user tries to copy to the clipboard. Acrobat just crashes
e.g section of code
m_pdPage = PDDocAcquirePage( CurrentPDDoc, nPage);
m_pdtextselect=PDTextSelectCreatePageHilite (m_pdPage, HiliteEntry*)&m_Wordlist, nJumpWords);
if( AVDocSetSelection (avDoc, ASAtomFromString "Text"), (void *)m_pdtextselect,TRUE))
I have also tried the sample wordex which is part of the SDK which uses a similar technique and this also crashes.
Does any one have any idea how to progam round this?