Issue 125392 - Parallel access to XIndexAccess leads to deadlock
Summary: Parallel access to XIndexAccess leads to deadlock
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 4.1.0
Hardware: All Windows, all
: P3 Normal
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Blocks: 125355
  Show dependency tree
Reported: 2014-08-08 13:34 UTC by Jens Bornschein
Modified: 2014-08-08 13:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
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#)


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