uncaught exception can't be catched
i have integrated sources of xmlcataloghandler sample cs2 plug-in.
the sample can't build @ cs2, due missing 'types.r' athough build plug-in win32.
the sdkfilehelper want call own menu item.
the plug-in can build without error, when invoce functionality
to read xml-file, permanently message 'adobe indesign shutting
down. serious error detected' @ line 'idfile defaultcatalogfile =
utils<ixcathndfacade>()->getdefaultxmlcatalogfile();'
further i'v surrounded line try-clause , catch (const exception& e).
the method getdefaultxmlcatalogfile() i've surrounded a
try/catch-clause.
but anyway named uncaught error, stop indesign.
what avoid or handle basic error?
jochen seliger
in c++ accessing null not throw exception, crashes program. if remember correctly, cs2 exceptions had disabled in compiler anyway, forget exceptions.
to verify, add line:
if( !utils<ixcathndfacade>().exists() ) calert::erroralert(pmstring(".nüscht"));
if see error dialog, .fr class definition resource missing matching addin @ kutilsboss.
More discussions in InDesign SDK
adobe
Comments
Post a Comment