Error 241 - Global memory corrupt

Global memory corrupt - (%ERR_GLOBALMEMORYCORRUPT) - PowerBASIC detected a global memory corruption.

Typical causes include misuse of pointers, accessing an array beyond its boundary, or bad Inline Assembly code.  The cause of the problem may actually be in a seemingly unrelated portion of the program, and/or in a DLL or module used by the program.

Error 241 was formerly deemed "Far heap corrupt" (%ERR_FARHEAPCORRUPT).  While this equate remains supported for a short period, source code should be updated to maintain compatibility with future versions of PowerBASIC.