this happen to me about 2 months ago and it was the throttle position sensor [tps].2 weeks after that it did it again and the maf [mass air flow]sensor was bad.both are easy fix's.
engine stalls sometimes driving
Use a code reader to find out why the check engine light is on.
Then you need to have code checked, you can diagnose from there.
If the "check engine" light is on, use a code scanner to find out what's wrong. You can borrow, rent or buy a code scanner from most auto parts retailers. Sometimes they'll even show you how to connect it and how to read the results.
it might be your throttle
The light comes on when the car stalls because the engine is not running and the pump therefore is not pumping. The pressure will always be 0 when the engine stalls and the light is directly related to pressure. This is normal, you have no problem, other than the engine stalling.
Check your fuel filter, it may need replaced.
Check Engine light is on. Engine OK when cold, but when reaches operating temperature it stalls at idle.
is the computer setting a code or check engine light, if not it could be your crank sensor.
check engine light. it means you should eather check your "codes" or go to an auto shop and tell them your check engine light is on. sometimes its free.
You better check the computer code ASAP it may let you down on the road. Mine did.
There are many causes for a service engine light. You need to have it checked for codes. Then you can diagnose from there.