Microsoft KB Archive/94694

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

PSS ID Number: 94694

Article Last Modified on 1/9/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q94694



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.



Steps to Reproduce Problem
  Type the following code into a source module called MOD1.BAS: 'MOD1.BAS Declare Sub csub cdecl Call csub   Compile the Basic module by entering the following command from an MS-DOS prompt: BC MOD1.BAS;   Using the following code, create a C program with Microsoft C/C++ Version 7.0, and name it MOD2.C:      /* MOD2.C */ #include      void csub {        Printf(&quot;In the C Subroutine\n&quot;); }                         Compile the C module from the MS-DOS prompt by using this command: CL /c /AL MOD2.C   Link the program in the following way: LINK MOD1.OBJ (MOD2.OBJ); </li> Run the MOD1.EXE program from the MS-DOS prompt.</li></ol>

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: KB94694

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.