There are a variety of factors that can trigger this condition, and not all of them are due to a transmission problem. Even something as simple as a faulty engine sensor can cause this. You need to have the drivetrain looked at by someone that knows what they are doing in order to get an idea of what is causing your specific problem.