Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FDK - creation of an equation element crashes FM 1

Status
Not open for further replies.

kerlin

Programmer
Sep 20, 2003
16
0
0
IT
Hi,
I need to programatically create an equation element in FM. The procedure I use is the same I use for other elements, that is:
Code:
F_TextRangeT tr = F_ApiGetTextRange (docId, parentElemId, FP_TextRange); 
F_ElementLocT el = F_ApiTextLocToElementLoc (docId, &tr.end); 
F_ObjHandleT elemId = F_ApiNewElementInHierarchy (docId, elemDefId, &el);
When elemDefId is id of an equation element, the procedure above crashes FM. For other types of elements it works just fine.

Any ideas or suggestions?

 
I finally found out that crash occurs only when document being generated is invisible and it's probably an FM bug. So now I first check whether the document has any equation elements in its catalog and if so I open it as visible (I do disable displaying).

Kerlin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top