A method and system are provided that override constructors such that the
constructors not only initialize objects but also provide notification
about virtual pointers of the objects. This notification is provided to a
list that stores which virtual pointers are created and where they are
supposed to be pointing. By knowing the address of the virtual tables
that the virtual pointers are supposed to be pointing to, a determination
can be made whether the virtual tables are the correct virtual tables or
whether they may be different virtual tables that have been substituted
in by a hacker and that contain pointers to foreign code.