[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
To: "'framers@xxxxxxxxx'" <framers@xxxxxxxxx>
Subject: Weird errors
From: "Mitchell, Sue" <Sue.Mitchell@xxxxxxxxxx>
Date: Thu, 26 Apr 2001 14:30:59 -0400
Sender: owner-framers@xxxxxxxxx
I developed a tool (dll) that goes through all the files in a book and changes any text tagged with a certain character style (InterFaceElement) to a different character style(UI Element). In general the tool works well but I get some errors that I don't really understand: 1. I am using F_ApiFind and when I try to deallocated the findParams it causes my program to crash. If I comment out the F_ApiDeallocatePropVals(&findParams) the program runs fine and there are no crashes, I am however worried about a memory leak if I don't deallocate the memory. Is it *bad* to not deallocate memory and what potential problems could this lead to? Any ideas as to why F_ApiDeallocatePropVals(&findParams) would cause the program to crash? 2. Some times when the program tries to set the properties to a given text range F_ApiSetTextProps(docId, &trFound, &props) (retrieved by using F_ApiFind) I get an error FE_OffsetNotFound: Offset specified for the text location couldn't be found in the specified paragraph or text line. It still works however and changes the selected text to the new character style. I don't really understand why, it is not always in tables but often, it is not always when it spans two lines but often, it is not always when it includes an 'end of section' symbol but often...... I am rather confused here. 3. This same dll when run on a colleague's computer crashes FrameMaker sometimes (it gets hung up and must be shut down using task manager) If I try to run it on the same files it works just fine on my computer! Again rather confused. This is not an application we will use often, more of a one time thing, however I am really curious as to why I am having so many difficulties with it. Any comments or advice would be appreciated. Sue Mitchell -------- Writing Support Specialist - Documentation Engineering Services Cognos Incorporated, Riverside (613)738-1338 x5461 sue.mitchell@cognos.com ** To unsubscribe, send a message to majordomo@omsys.com ** ** with "unsubscribe framers" (no quotes) in the body. **