Results 1 to 3 of 3
  1. #1
    Dsmoot
    Guest

    Out of Memory Error

    I recently completed an application using VB6 and DataWidgets ActiveX control to run some specialized reports. This product when working in the testing mode is working under NT4 into a SQL7 server and BDE. The connection is made using ODBC. In the testing mode everything works well, however, I went to deploy this on our Citrix System and I get an Error 7, "Out of Memory" and the system halts. This particular server has over 1 GIG of RAM.

    Any ideas?????

  2. #2
    Star Lounger
    Join Date
    Mar 2001
    Location
    Atlanta, Georgia, USA
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Out of Memory Error

    Be sure that when you finish using an object, you release it by setting it to Nothing.

    Set MyOdbc = Nothing

    Otherwise, VB wil not free the memory.

    This may not be the problem that you are having, but it is actually a common error.

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Out of Memory Error

    Also make sure you explicitly unload all forms you've opened, even if you think you already closed them. In VB trying to close them again won't give you an error and it will release the resources allocated to any forms that are still loaded. And make sure that any object variable you create using the Set keyword gets destroyed when you finish with it, not just the OLE objects.
    Charlotte

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •