Michael is right about the solenoid. Mine wasn't working and the PO had it cranked out to serve as the permanent idle stop whether in gear or not. In addition to the solenoid not working, I had one pressure switch that was out as well.
From what I understand, one wire on the solenoid is provided a constant 12V from the fuse box, while the other is a gets it's ground from the transmission pressure switches. You should have two switches on either side, one for reverse and one for drive. When trans is in reverse or drive, these switches ground and provide the ground to the solenoid. Does the stalling occur in both drive AND reverse. If just one, could be the switches.
A/c can also activate the solenoid but since I don't have that, I am not as familiar with that function. I hope that helps.