c++ - Location of class member changes when class method is accessed from different places -
i having problem of location of class member changes depending on when function run.
when constructor running, location of member 0x008bc044. later member function called , location of same member still 0x008bc044. later on member function run again location of same member changes 0x008bc048. other members of class don't change there location. not casting class type.
this causing problem because function reading random data , causing incorrect output.
i using visual studio 2012, 11.0.60315.01 update 2.
you running 32 bit system, have a derived class , show pointer of base class , pointer of derived class. in addition have reinterpret or c-style cast.
Comments
Post a Comment