Hi,

I have a VB6 Project running on a Windows 2000 machine with SP4.

I make a referecne to a dll given by a particular tool. This dll allows me to access the data inside the projects created by this tool. There exists a Workset class which needs to be initialized before using other methods in this class.

VB Code:
  1. Dim wst as New CWorkset
  2. wst.Init(USER, PASSWORD. DBPATH)

The above set of statements proceed normally when I run it the first time. As I am in the devlopment phase of the project I tend to Debug the code and stop at different places and restart the project. When the Debugger comes across the above two lines of code for the second time it gives me the errror message "Out of Memory". The workaround at present is to restart the machine and proceed. However I would like to know the real reason behind this problem and take care of it without having to restart the system.

I am sure it is not the second statement which is failing because I tested these in VB.NET and captured the error in the first statement with the help of the line numbers(Erl).

Regards,
Ranjith.