Help with Wimp error message
Alan Adams (2486) 1149 posts |
What does “Invalid Wimp operation in this context” mean please? I have a bunch of BASIC programs sharing code in a library.One of the library routines loads a template file for a window they all have a copy of, and creates the window. I’m adding a new program to the suite, and this code produces the above error, but only when the new program calls it. The existing ones still work. I’ve dumped the block resulting from loading the template and can’t see anything obviously wrong. The error is raised when I pass the block to “Wimp_CreateWindow”. |
Chris Hall (132) 3554 posts |
Does the new programme register itself as a multi tasking programme by using the “Wimp_Initialise” call? A single tasking programme would raise the error you describe. |
Steve Pampling (1551) 8170 posts |
I;m curious, Adam has been having issues with maintaining correct time on his kit and here we have a possible single tasking program issue. |
Alan Adams (2486) 1149 posts |
Thanks guys.
The error message could have been made more useful, e.g “Operation only valid in a WIMP program”. The problem was that I called one library before Wimp_Initialise. Simple, except for the obscure error message.
No. See above. |
Steve Pampling (1551) 8170 posts |
Indeed, many messages are not as clear as they could be. That might be something a less technical, or non-technical, person could look at in the OS source files, and then after discussion of their findings, their modified messages could be implemented in the OS (and probably in the DDE for those people less than amused by the cryptic error messages there.) |