I do not know what platform you are on but is this callback coming from a DLL? If so is your module and the DLL using the same CRT and STL version?