A description is given of a method for calculating fields in open resonators. This method uses the Schmidt expansion of continuously variable operators and it makes it possible to find a complete orthonormalized system of functions. An analysis of the process of establishment of oscillations in a resonator with infinite inhomogeneous mirrors is used to demonstrate that a system of nonstationary modes arises necessarily in such a resonator.