When I started using Microsoft Visual 2008, he began appearing this error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt" and not know what could be.
To debug the program the error occurred after executing the line:
objBP = (BusinessPartners)objCompany.GetBusinessObject(BoObjectTypes.oBusinessPartners)
Does anyone know what might cause this error?