3 writes to _unmanagedHandles
PresentationFramework (3)
MS\Internal\PtsHost\PtsContext.cs (3)
51
_unmanagedHandles
= new HandleIndex[_defaultHandlesCapacity]; // Limit initial size
165
_unmanagedHandles
= null;
453
_unmanagedHandles
= newItems;
30 references to _unmanagedHandles
PresentationFramework (30)
MS\Internal\PtsHost\PtsContext.cs (30)
116
if (Invariant.Strict &&
_unmanagedHandles
!= null)
121
for (index = 0; index <
_unmanagedHandles
.Length; ++index)
123
Object obj =
_unmanagedHandles
[index].Obj;
138
for (int i = 0; i <
_unmanagedHandles
.Length; ++i)
140
Object objDbg =
_unmanagedHandles
[i].Obj;
188
if (
_unmanagedHandles
[0].Index == 0)
194
long handle =
_unmanagedHandles
[0].Index;
195
_unmanagedHandles
[0].Index =
_unmanagedHandles
[handle].Index;
196
_unmanagedHandles
[handle].Obj = obj;
197
_unmanagedHandles
[handle].Index = 0;
214
Invariant.Assert(handleLong > 0 && handleLong <
_unmanagedHandles
.Length, "Invalid object handle.");
215
Invariant.Assert(
_unmanagedHandles
[handleLong].IsHandle(), "Handle has been already released.");
216
_unmanagedHandles
[handleLong].Obj = null;
217
_unmanagedHandles
[handleLong].Index =
_unmanagedHandles
[0].Index;
218
_unmanagedHandles
[0].Index = handleLong;
232
if (handleLong < 0 || handleLong >=
_unmanagedHandles
.Length)
236
return
_unmanagedHandles
[handleLong].IsHandle();
251
Invariant.Assert(handleLong > 0 && handleLong <
_unmanagedHandles
.Length, "Invalid object handle.");
252
Invariant.Assert(
_unmanagedHandles
[handleLong].IsHandle(), "Handle has been already released.");
253
return
_unmanagedHandles
[handleLong].Obj;
432
_unmanagedHandles
[0].Index = freeIndex;
434
while (freeIndex <
_unmanagedHandles
.Length)
436
_unmanagedHandles
[freeIndex].Index = ++freeIndex;
439
_unmanagedHandles
[freeIndex - 1].Index = 0;
448
int freeIndex =
_unmanagedHandles
.Length;
451
HandleIndex[] newItems = new HandleIndex[
_unmanagedHandles
.Length * 2];
452
Array.Copy(
_unmanagedHandles
, newItems,
_unmanagedHandles
.Length);