Microsoft KB Archive/71793

= Microsoft Knowledge Base =

&quot;Protection Violation&quot; with 7.10 BC /MBF Option Under OS/2
Last reviewed: January 12, 1995

Article ID: Q71793

SYMPTOMS
A &quot;Protection violation&quot; error will occur if you attempt to compile a program under OS/2 protected mode using Microsoft Basic Professional Development System (PDS) version 7.10 with the /MBF compile option.

WORKAROUND
To work around this problem, compile programs that require the /MBF option in the OS/2 MS-DOS-compatibility box, using the /Lp option on the compile line to specify OS/2 protected mode for the compiled executable. For example

BC /o /MBF /Lp test.bas ; will allow you to compile a protected mode program using the /MBF option from the MS-DOS compatibility box. Once compiled, the program can be normally LINKed and executed under protected mode.

STATUS
Microsoft has confirmed this to be a bug in Microsoft Basic Professional Development System version 7.10 for MS-DOS and MS OS/2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

This problem does not occur using Microsoft Basic PDS version 7.00.