I heard in some movie this idiom: "making bets in a burning house". I think it means in vain, a futile effort. Does anybody know the roots of this idiom? And are there other idioms of the same meaning?