https://bugs.documentfoundation.org/show_bug.cgi?id=158557

            Bug ID: 158557
           Summary: I am trying to use COM on Windows to load an
                    OpenOffice Writer object in a window but it fails
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I am embedding a new LibreOffice text document in another window, but it fails.
After building LibreOffice... I discovered that the code that creates class
factories for creating the various LibreOffice objects, immediately deletes
them...

app.cxx line 1917

1917 xSMgr->createInstance("com.sun.star.bridge.OleApplicationRegistration");
1918 xSMgr->createInstance("com.sun.star.comp.ole.EmbedServer");

the assembly code is
    xSMgr->createInstance("com.sun.star.bridge.OleApplicationRegistration");
5B148004  lea         edx,[xSMgr]  
5B148007  push        edx  
5B148008  call       
com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>::operator->
(5B13DCC0h)  
5B14800D  add         esp,4  
5B148010  mov         dword ptr [ebp-20h],eax  
5B148013  mov         eax,dword ptr [ebp-20h]  
5B148016  mov         ecx,dword ptr [eax]  
5B148018  mov         edx,dword ptr [ecx+0Ch]  
5B14801B  mov         dword ptr [ebp-48h],edx  
5B14801E  movzx       eax,byte ptr [ebp-0Fh]  
5B148022  push        eax  
5B148023  push        5B25AC88h  
5B148028  lea         ecx,[ebp-24h]  
5B14802B  call        rtl::OUString::OUString<char const [47]> (5B1321F0h)  
5B148030  mov         byte ptr [ebp-4],2  
5B148034  lea         ecx,[ebp-24h]  
5B148037  push        ecx  
5B148038  lea         edx,[ebp-4Ch]  
5B14803B  push        edx  
5B14803C  mov         eax,dword ptr [ebp-20h]  
5B14803F  push        eax  
5B148040  call        dword ptr [ebp-48h]  
5B148043  add         esp,0Ch  
5B148046  lea         ecx,[ebp-4Ch]  
5B148049  call       
com::sun::star::uno::Reference<com::sun::star::uno::XInterface>::~Reference<com::sun::star::uno::XInterface>
(5B13BFC0h)  
5B14804E  mov         byte ptr [ebp-4],1  
5B148052  lea         ecx,[ebp-24h]  
5B148055  call        rtl::OUString::~OUString (5B13CED0h)  

Since this code never gets called again, attempts to create COM objects time
out because the class factory is missing.

Steps to Reproduce:
1.Try to embed a Libre Office object using COM
2.
3.

Actual Results:
The code times out and Windows gives an error

Expected Results:
It should display the new document in the window


Reproducible: Always


User Profile Reset: No

Additional Info:
let me know what this is fixed ([email protected])

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to