vptr and buffer overflow issue
<p>I have an object of an inherited class type (say it's type B and it inherits from A), and I suspect it's vptr gets corrupted due to buffer overflow somewhere in the system. I think this is the case because in runtime when trying to access a public method of that object I SOMETIMES get "Access violation."</p>

<p>A. Any ideas? 
B. I get a pointer to object A as a parameter to the method where I try to access it. If indeed the vptr is corrupted can I verify this by trying to perform dynamic_cast on the A pointer to use it as B and hope it fails in case there's a problem with the vptr?</p>

<p>Thank you </p>
