BUG: DE Uses All Resources When Breakpoint is Hit in Debug Mode

ID: Q229752


The information in this article applies to:


SYMPTOMS

When you use two instances of the Visual Basic 6.0 IDE to debug your client server applications with one running the client and the other running the server, you might see behavior under Win95 or Win98 where the amount of free system resources diminishes until locking the machine. This behavior can happen when you reach a breakpoint in the instance running the server.


RESOLUTION

The recommended workaround is to debug client and server separately. Compile the client and debug the server in the IDE. Once you have the server reasonably debugged, compile it and debug the client in the IDE.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new ActiveX EXE project. Class1 is created by default.


  2. From the Projects menu, choose Properties and name this LeakMemory.


  3. Add this method to Class1:


  4. 
    Public Function GetLong() as Long
    	GetLong = 5
    End Function 
  5. From the File menu, save the project.


  6. Place the cursor on the GetLong = 5 line and press the F9 key to set a breakpoint.


  7. Run the project.


  8. Open a new instance of Visual Basic 6.0.


  9. Start a new Standard EXE project. Form1 is created by default.


  10. From the Project menu, choose References, check the running server (LeakMemory), and click OK.


  11. Place a CommandButton on the form and, in the Click event, place the following code:


  12. 
    Dim MyObj as New LeakMemory.Class1
    Dim k as long
    K=MyObj.GetLong() 
  13. Run the project and click the button. You should reach the breakpoint in the server.


  14. On the Visual Basic instance running the server, select About from the Help menu, and click the SystemInfo button.


  15. From the View menu, select the Refresh option several times, at 20- or 30-second intervals, and you should see the available memory decreasing every time you refresh the window. This continues until the machine locks up.


  16. If you press the F5 key for Visual Basic to continue past the breakpoint, the resources are released.


Additional query words:


Keywords          : kbActiveX kbResource kbVBp600bug kbIDEProject kbGrpVB 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: May 25, 1999