C7 Module, Overlay, and Run-time Module Makes Computer Hang

ID: Q94694


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


SYMPTOMS

Programs hang when they use all of the following: overlays, a Microsoft C/C++ version 7.0 module, and a run-time module.


WORKAROUND

To work around this problem, use one of these options:

  • Compile for stand-alone (BC option /O).


  • Do not use overlays.


  • Do not use C modules.



STATUS

Microsoft has confirmed this to be a bug in the Professional Edition of Microsoft Visual Basic version 1.0 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

Steps to Reproduce Problem

  1. Type the following code into a source module called MOD1.BAS:
    
          'MOD1.BAS
     
          Declare Sub csub cdecl()
          Call csub 


  2. Compile the Basic module by entering the following command from an MS-DOS prompt:
    
          BC MOD1.BAS; 


  3. Using the following code, create a C program with Microsoft C/C++ Version 7.0, and name it MOD2.C:
    
          /* MOD2.C */ 
          #include <stdio.h>
          void csub()
          {
             Printf("In the C Subroutine\n");
          } 


  4. Compile the C module from the MS-DOS prompt by using this command:
    
          CL /c /AL MOD2.C 


  5. Link the program in the following way:
    
          LINK MOD1.OBJ (MOD2.OBJ); 


  6. Run the MOD1.EXE program from the MS-DOS prompt.


At this point your computer will either hang (stop responding) or crash (the screen goes blank).

Additional query words: VBmsdos buglist1.00 1.00 4.50 7.00 Interlanguage

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


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