1

Topic: CreateInstance (L "com.sun.star. ServiceManager")

Here such code suspends program performance (minutes on 2, it is then returned 080080005 the Error at performance of application of the server) if before its start to open LibreOffice Calc 5.0 32bit. This code is the beginning of outswapping of the data in ods a file. #include "stdafx.h" #include "comdef.h" int _tmain (int argc, TCHAR* argv [], TCHAR* envp []) {HRESULT hr =:: CoInitializeEx (NULL, COINIT_APARTMENTTHREADED); IDispatchPtr dispServiceManager; if (FAILED (dispServiceManager. CreateInstance (L "com.sun.star. ServiceManager"))) {return 1;} return 0;} If thus in the course of performance of a line "dispServiceManager. CreateInstance (L" com.sun.star. ServiceManager ")" it to close, the program there and then successfully completes object creation. If to launch this code without preliminary discovery LibreOffice Calc 5.0 32bit, problems do not arise. Fast start  is ungeared. It is stablly played back by the working machine win7x64, on house win7x64 - is not present. That interesting problem only with scalc, tells swriter it is possible to launch without consequences. Also in the manager of tasks it is visible that process soffice.bin loads the processor on 50 % (the processor 2 nuclear)

2

Re: CreateInstance (L "com.sun.star. ServiceManager")

Hello, greydrone, you wrote: G> Here such code suspends program performance (minutes on 2, it is then returned 080080005 the Error at performance of application of the server) if before its start to open LibreOffice Calc 5.0 32bit. Here people had a same problem and they solved it, is possible also to you helps: http://forum.foxclub.ru/read.php?29,547384

3

Re: CreateInstance (L "com.sun.star. ServiceManager")

Googled, googled and  a variant which helped. I feel a little strange. It was possible to correct by means of Service of components-> LibreOffice Service Manager (Ver1.0)->> to Change the Certificate - with launching the user on the current user.

4

Re: CreateInstance (L "com.sun.star. ServiceManager")

Hello, greydrone, you wrote: G> Googled, googled and  a variant which helped. I feel a little strange. It was possible to correct by means of G> Services of components-> LibreOffice Service Manager (Ver1.0)->> to Change the Certificate - with launching the user on the current user. It seems that this component when is launched does something for what to it ways of the user either on a disk or from its branch of the register are necessary what that.