Use dynamic memory as little as possible when handling exceptions
Start work on window class.