PRB: /SEG Option Setting Ignored in VBDOS.EXE

ID: Q90044


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


SYMPTOMS

When creating an .EXE file from within the VBDOS.EXE environment, you cannot set the number of segments to be used in your application. Visual Basic for MS-DOS sets this LINK option by default. The /SEG option setting is ignored.


CAUSE

Normally, if you want to add a LINK option while in the VBDOS.EXE environment, you can either add it in the Additional Options box in the Make EXE File dialog box, or before entering VBDOS.EXE you can set an environment variable (for example, LINK = /SEG:512).

The problem is that the VBDOS.EXE environment overrides any previous setting. The VBDOS.EXE environment calculates how many segments your application needs plus the amount needed if you were to use PROISAM or PROISAMD, plus about an extra 50 segment buffer. However, if you have a large Quick library that requires more segments than was calculated, you will get a LINK error:

L1049 "too many segments"


WORKAROUND

In order to LINK this type of application, you will have to do so from the MS-DOS command line using the /SEG:### option.


STATUS

This behavior is by design.

Additional query words: VBmsdos 1.00

Keywords :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


Last Reviewed: December 9, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.