Issue 125392

Summary: Parallel access to XIndexAccess leads to deadlock
Product: App Dev Reporter: Jens Bornschein <jens.bornschein>
Component: apiAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3    
Version: 4.1.0   
Target Milestone: ---   
Hardware: All   
OS: Windows, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 125355    

Description Jens Bornschein 2014-08-08 13:34:40 UTC
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
   }

});

}