[[!redirects The Window Manager Errors]] h6. [[WindowManager]] h6(. » [[WindowManager Technical Details|Technical Details]] h6((. » Errors h2(#overview). Overview Errors can be very difficult to detect and fix and may cause both the user and developer great frustration if left unfixed. If an application unfortunately fails to deal with an error, it should, as a bare minimum report the error to the user in a friendly manner, explaining what has happened. h2(#common_errors). Common Errors |_<^{width:2em}. # |_<^. Common Error | |<^. 1 |<^. Always check for errors when calling a Wimp SWI. | |<^. 2 |<^. The redraw loops can be a source of infinite error loops. If a redraw fails, then the Wimp will again ask for the area to be redrawn, which cause the same error as before and so on.| |<^. 3 |<^. Missing Fonts can cause to infinite looping if error checking is not implemented.| |<^. 4 |<^. [[Wimp_CreateWindow|Wimp_CreateWindow]] and [[Wimp_CreateIcon|Wimp_CreateIcon]] should always be error proof, to ensure that no data are lost if the calls fail.| |<^. 5 |<^. Check cases concerning running out of space. | h2(#error_messages). Error Messages The table below provides a quick overview of some of the most common error messages that your application may have to deal with. |_<^{width:6em}. Error Code |_<^. Error Message | |<^. &280 |<^. Wimp unable to claim work area. The RMA area is full. | |<^. &281 |<^. Invalid Wimp operation in this context. Some operations are only allowed after a call to Wimp_Initialise. | |<^. &284 |<^. Window definition won’t fit. No room in RMA for window. | |<^. &286 |<^. [[Wimp_GetRectangle|Wimp_GetRectangle]] called incorrectly. | |<^. &287 |<^. Input focus window not found. | |<^. &288 |<^. Illegal window handle. | |<^. &289 |<^. Bad work area extent. Visible window is set to display a non-existent part of the work area. | |<^. &29F |<^. Bad parameter passed to Wimp in R1. |