Microsoft KB Archive/33734

“Memory Protection Violation” in MS OS/2 If LINK without /nop

PSS ID Number: Q33734 Article last modified on 04-21-1993

3.00 3.00a | 3.00 3.00a MS-DOS | OS/2

Summary: A “Memory Protection Violation” error (trap 13) occurs at run time in MS OS/2 protected mode if a COBOL Version 3.0 or 3.0a program has not been LINKed with the /nop and /nod options. The following is an example of how to compile and properly link with the /nop and /nod options to avoid the error message: pcobol test.cob link test.cob /nop/nod,,,pcobol + doscalls; A program linked without the /nop and /nod options functions correctly if the PANIMATOR debugging tool is used to run the code or if the code is run in MS OS/2 real mode or in MS-DOS. For more information, please refer to the “Microsoft COBOL Compiler Version 3.0: Operating Guide,” Chapter 4, Page 9, under the heading “Additional Information for Protected Mode on OS/2.”

Additional reference words: 3.00 3.00a Copyright Microsoft Corporation 1993.