https://issues.apache.org/ooo/show_bug.cgi?id=125392

          Issue ID: 125392
        Issue Type: DEFECT
           Summary: Parallel access to XIndexAccess leads to deadlock
           Product: App Dev
           Version: 4.1.0
          Hardware: All
                OS: Windows, all
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: api
          Assignee: [email protected]
          Reporter: [email protected]

The OpenOffice process seems to fall into some kind of deadlock when trying to
access the same XIndexAccess object in parallel for reading request on the
containing elements.

(using cli api from c#)

example:

XIndexAccess ia = DrawPage as XIndexAccess;
if (ia != null){

Parallel.For(0, ia.getCount(), (i) => { 
   var anyShape = ia.getByIndex(i);
   if (anyShape.hasValue() && anyShape.Value is XShape)
   {
       //do somthing
   }

});

}

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to