 These plans however were interrupted by his death in 1792, when his widow choose Ulriksdal as her private residence.The "Kungliga Krigacademien" ("Royal War Academy") was instead located at Karlberg where the first generation of cadets started their training later the same year.During the regency of Gustav's son, Gustav (1778-1837), architect Carl Christoffer Gjörwell (1766–1837) was ordered to enlarge the palace to accommodate the cadets.