Why does your Volvo 240 stall when you start it and put it into gear and only operate correctly if you give it gas for awhile with possiblility of an oxygen sensor problem and a check engine light?

Could be a dirty Throttle Box. This should be cleaned as part of a general tune-up.