360 dies at idle, but not when in gear ??? Huh?

One way to check if it's running out of fuel, run it till it dies, then pull the top of the carb off and see how much fuel is in the bowls.