hi Kermit,

Kermit Qiu wrote:
> Hi,
>     Now I use OpenOffice to convert document from pdf format into html
> format, and I try to cath all the exception as below:
> ...
> *try{*
> *  ooStore->storeToURL( OUString::createFromAscii(strOOPathFile), storeProps
> );
>  }catch(...)  // catch all the exception
>  {
>    handleException();
>   return E_GEN_ERR;*
> *    *
>      It runs well when the pdf document is normal.But when I am doing the
> stability test, I constructed a new abnormal pdf document with some wildcat
> string such as "&(()))^%$$", OpenOpen will not throw any exception but just
> raised the "segmentation fault" and exit directly.

well, OOo shouldn't segfault, not even on invalid input.
if you can get it to segfault, and you can reproduce it, that is a bug, so
please file an issue in OOo issuezilla:
http://qa.openoffice.org/issue_handling/project_issues.html

and attach your input document that makes OOo crash.

>     I need to catch any exception from OpenOffice, could you have any
> suggestion for me?

if OOo has crashed, there is nothing you can do about it except restarting
it; of course you could figure out why it crashed, fix the bug in OOo and
attach a patch to your issuezilla report :)

>     My environment is OpenOffice 3.1.0/Suse Linux/C++.
>     Thanks very much!
> 
> Best Regards,
> Kermit

regards,
michael

-- 
"We are sorry, you have dialed an imaginary number.
 Please rotate your phone ninety degrees and try again."


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to