CS4:Crashes on right click on text frame


hi,

 

          m using own created tool draw text frame as,

ibtool::ibtool(ipmunknown* boss) :ctool(boss,ktextselectiontool, ktrue,ktrue)

{//constructor ctool;

}

 

in tracker.cpp have written following code activate text editor in same fame ,

the code crashes indesign on right click in frame cs4(on cs3 behaves fine).

 

iactivecontext *activecontext=getexecutioncontextsession()->getactivecontext();

icontrolview* view = activecontext->getcontextview();  

utils<itexteditorutils>()->activatetexteditorview(view,newitem);

//newitem=pageitemref of textframe drawn tool.

interfaceptr<itool>ipointertool(utils<itoolboxutils>()->querypreviousactivetool(kpointerto olboss));

utils<itoolboxutils>()->setactivetool(ipointertool);

 

if not activate texteditor doesn't crash.

 

if knows please me!

 

thanks.



More discussions in InDesign SDK


adobe

Comments

Popular posts from this blog

Installation database is corrupt

Error compiling for board Arduino/Genuino Uno.

Nogen der kender et simpelt hvidt template med topmenu kun - Joomla! Forum - community, help and support