Access Violation C0000005 - Read or Write

Play Access Violation C0000005 - Read or Write

The Discussion

  • User profile image
    Alphonce Owayo

    Hi, thanks for your presentations trying to help people to solve their bugs. Mine is a C00000005 violation. (00007FF8CB92A12C call ptr [rax+20h]. The part of the code causing problems is pasted below line 2 and 3. Kindly help



    NApiCore::ICustomPropertyManagerApi_1_0*contactCustomPropertyManager
    = static_cast<NApiCore::ICustomPropertyManagerApi_1_0*>(apiManager.getApi(eContactCustomPropertyManager, 1, 0()));

    iBOND_STATUS = contactCustomPropertyManager->getPropertyIndex(BOND_STATUS.c_str());
    iBOND_PREFS = contactCustomPropertyManager->getPropertyIndex(BOND_PREFS.c_str());;
    iBOND_NORMAL_FORCE = contactCustomPropertyManager->getPropertyIndex(BOND_NORMAL_FORCE.c_str());;
    iBOND_TANGENTIAL_FORCE = contactCustomPropertyManager->getPropertyIndex(BOND_TANGENTIAL_FORCE.c_str());;
    iBOND_NORMAL_TORQUE = contactCustomPropertyManager->getPropertyIndex(BOND_NORMAL_TORQUE.c_str());;
    iBOND_TANGENTIAL_TORQUE = contactCustomPropertyManager->getPropertyIndex(BOND_TANGENTIAL_TORQUE.c_str());;
    iBOND_SEPERATION = contactCustomPropertyManager->getPropertyIndex(BOND_SEPERATION.c_str());;
    return true;

Add Your 2 Cents