If this only happens when you are at an idle, most likely, the idle air control solenoid is bad. It is responsible for maintaining engine idle speed. When you engage the AC compressor, there is a load put on the engine. At that point, the PCM should signal to the IAC to slightly increase idle speed to accomedate the added load. If the IAC doesn't respond, the engine may stall.
NOTE: The AC compressor engages both when you turn the AC on and when the defroster is used. In the defrost setting, the AC is used to dehumidify the air coming into the vehicle to help clear the windshield.
SPONSORED LINKS
Friday, September 5th, 2014 AT 8:33 PM