Issue 125392 - Parallel access to XIndexAccess leads to deadlock
Summary: Parallel access to XIndexAccess leads to deadlock
Status: UNCONFIRMED
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:
URL:
Keywords:
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: ---


Attachments

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#)

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
   }

});

}