Hi Ariel,

    Thanks for the quick reply. To answer your questions..

 + I am able to launch open office from Terminal without any issues. But
not from my application.
 + My application is linked with a library myoocalc.dylib (from which
osl_executeprocess is being called.) and libuni_ccpu.dylib.3,
libuno_cppuhelpergcc3.dylib.3, libuno_sal.dylilb.3, etc..
    ++ The all dynamic libraries are located at
/Volumes/data/OpenOffice.org_SDK/OpenOffice.org_SDK/MACOSXexample.out/lib
    ++ My application calls a myoocalc.dylib's method which calls
osl_executeprocess method
 + Am running my application as root user.
 + The sample code u sent works fine..

Am not sure whether i'm doing anything incorrect here with linking my
application with dylib which invokes OO.

Thanks in advance for your help,
Anandh

On Thu, Feb 21, 2013 at 3:28 PM, Ariel Constenla-Haile
<[email protected]>wrote:

> 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
>

Reply via email to