Hi Anandha, On Thu, Feb 21, 2013 at 02:28:19PM +0530, Anandha Kannan wrote: > Hi Ariel, > > > > Thanks for the response. This helped me to correct few of > my mistakes I had done. > > having modified my code, now after calling osl_executeprocess, my > application tries to launch OO and executeProcess returns E_None, but OO > quits and with, > > "The application cannot be started.The component manager is not available." > > Some pages says, possible corrupt of services.rdb in OO installation. But > am not sure what is causing this issue. That error is produced because the application cannot bootstrap the initial component context (similar to an external application when it bootstraps the initial component context with the URE types); the error message is too generic as to get an idea where the problem is (a broken ini/rc file, broken registry database, essential libraries that cannot be loaded - bootstrap.uno.so etc., ...).
If you are able to launch OpenOffice from the terminal, you should be able to use osl_executeProcess(), this seems something logical. How are you running the application that uses osl_executeProcess()? Which is the current directory? Are you running as root or as normal user? Note that in the example, both user+rights and working directory are NULL, which will default to osl_getCurrentSecurity() and osl_getProcessWorkingDir(), all of which is fine if you are running the application as a normal user. And finally, does the example [1] work? [1] http://svn.apache.org/viewvc/openoffice/devtools/sdk-examples/trunk/cpp/ProcessTest/ Regards -- Ariel Constenla-Haile La Plata, Argentina
pgpT4dHphsFEm.pgp
Description: PGP signature