we deleted an object on the heap, and afterwards re-accessed the memory through the dangling pointer to verify the deletion actually happened. This works most of the time, unless the memory manager decides to map that page differently -- in which case we just hit random memory contents. A better idea is thus to place this TestFrame object into a statically allocated buffer and invoke the dtor explicitly. This allows us to conduct the test reliably. |
||
|---|---|---|
| .. | ||
| asset | ||
| control | ||
| engine | ||
| mobject | ||
| play | ||