stopped going into gear

my d series tranny stopped going into gear in the parking lot. i got it home and replaced the slave cylinder and drained the fluids and all that. bled the system but when i took it for a test drive it only worked for a minute then the problem started again. it goes into gear when the car is off fine but not when its on its grinds like crazy. any suggestions on what the problem is.