New Forum | Previous | Next | (P-PDF) Developers
Topic: Memory Errors
Conf: (P-PDF) Developers, Msg: 82103
Date: 2/27/2003 07:05 AM
I am working on a plug in to add multi line text to an open PDF page. To get the multi lines I arrange the lines of text into an array of pointers. Each pointers contains a line of text. Then I just traverse the array to put each line of text on the page. The functionality works fine. But I get exception errors with couldn't read and some couldn't write. Sometimes they don't come up till I try to close Adobe. It doesn't happen a lot. I know that this is being caused in how I am copying the text from a string to the different pointers. I am using the ASmalloc and ASfree as needed in Adobe. Also I ran the same function in a console program to debug, and I never got the error even after numerous runs. Is there something different about how the Adobe SDK handles allocating memory that I should know or could be over looking?