Microsoft KB Archive/90044

= PRB: /SEG Option Setting Ignored in VBDOS.EXE =

PSS ID Number: 90044

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q90044



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 &quot;too many segments&quot;



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: kbprb KB90044

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.