3 writes to _unmanagedHandles
PresentationFramework (3)
MS\Internal\PtsHost\PtsContext.cs (3)
48
_unmanagedHandles
= new HandleIndex[_defaultHandlesCapacity]; // Limit initial size
162
_unmanagedHandles
= null;
450
_unmanagedHandles
= newItems;
30 references to _unmanagedHandles
PresentationFramework (30)
MS\Internal\PtsHost\PtsContext.cs (30)
113
if (Invariant.Strict &&
_unmanagedHandles
!= null)
118
for (index = 0; index <
_unmanagedHandles
.Length; ++index)
120
Object obj =
_unmanagedHandles
[index].Obj;
135
for (int i = 0; i <
_unmanagedHandles
.Length; ++i)
137
Object objDbg =
_unmanagedHandles
[i].Obj;
185
if (
_unmanagedHandles
[0].Index == 0)
191
long handle =
_unmanagedHandles
[0].Index;
192
_unmanagedHandles
[0].Index =
_unmanagedHandles
[handle].Index;
193
_unmanagedHandles
[handle].Obj = obj;
194
_unmanagedHandles
[handle].Index = 0;
211
Invariant.Assert(handleLong > 0 && handleLong <
_unmanagedHandles
.Length, "Invalid object handle.");
212
Invariant.Assert(
_unmanagedHandles
[handleLong].IsHandle(), "Handle has been already released.");
213
_unmanagedHandles
[handleLong].Obj = null;
214
_unmanagedHandles
[handleLong].Index =
_unmanagedHandles
[0].Index;
215
_unmanagedHandles
[0].Index = handleLong;
229
if (handleLong < 0 || handleLong >=
_unmanagedHandles
.Length)
233
return
_unmanagedHandles
[handleLong].IsHandle();
248
Invariant.Assert(handleLong > 0 && handleLong <
_unmanagedHandles
.Length, "Invalid object handle.");
249
Invariant.Assert(
_unmanagedHandles
[handleLong].IsHandle(), "Handle has been already released.");
250
return
_unmanagedHandles
[handleLong].Obj;
429
_unmanagedHandles
[0].Index = freeIndex;
431
while (freeIndex <
_unmanagedHandles
.Length)
433
_unmanagedHandles
[freeIndex].Index = ++freeIndex;
436
_unmanagedHandles
[freeIndex - 1].Index = 0;
445
int freeIndex =
_unmanagedHandles
.Length;
448
HandleIndex[] newItems = new HandleIndex[
_unmanagedHandles
.Length * 2];
449
Array.Copy(
_unmanagedHandles
, newItems,
_unmanagedHandles
.Length);