There occurs an inconvenience with executing an entity break routine I wrote for my cad program. Function "EntitiesInsideFence(dpFence() as POINT2D, InsideH() as DWORD)" does not give back proper results when list "InsideH()" is not initialized with a number which exceeds the real found number of entity handles.
So, an initialization with for instance "ReDim InsideH(0)" ist not reliable. When 'InsideH() should give back exactly 5000 members in my example, the result may differ from about 4000 to 4500.
As soon as I use "30000" or similiar instead of "0" the result is proper.
FAULTY:
ReDim InsideH(0)
iCount = EntitiesInsideFence(dpFence(), InsideH())
CORRECT:
ReDim InsideH(30000)
iCount = EntitiesInsideFence(dpFence(), InsideH())
Is there any proposal or explanation?
So, an initialization with for instance "ReDim InsideH(0)" ist not reliable. When 'InsideH() should give back exactly 5000 members in my example, the result may differ from about 4000 to 4500.
As soon as I use "30000" or similiar instead of "0" the result is proper.
FAULTY:
ReDim InsideH(0)
iCount = EntitiesInsideFence(dpFence(), InsideH())
CORRECT:
ReDim InsideH(30000)
iCount = EntitiesInsideFence(dpFence(), InsideH())
Is there any proposal or explanation?
Comment