Buckling of thin-walled frames