Solved

Memory leak - running Business objects from a VB app

Posted on 2000-02-14
4
307 Views
Last Modified: 2008-03-06
We are running Business Objects reports through a VB interface.  
If the user opens several BO reports through the interface and
then exits BO/VB, they get Out of Memory errors if they try to open
other apps (Word comes to mind)

We think VB or BO is not releasing memory when closed. How can we
indentify this for sure and how can we be sure that everything gets released as the custom interface to BO closes?
0
Comment
Question by:quantz
  • 2
4 Comments
 

Accepted Solution

by:
SimCity earned 100 total points
ID: 2520405
are you going through each BO report and setting them to "nothing" in the unload event. Many times not setting objects or controls to nothing when unloading a form will cause the program not to release that memory until you restart the system.
0
 
LVL 1

Expert Comment

by:Misledman
ID: 2522455
SimCity is correct, however, I very strongly believe that VB itself has a memory leakage problem that Bill is not telling us about. "Out of memory" happens to me all the time, and only when I run VB for a good while. Save often and reboot regularly is good advice.
0
 
LVL 4

Expert Comment

by:PBuck
ID: 2523515
I had this same problem when a partner of mine was passing me VB5 projects, when I was using VB6.  Other projects worked fine when they are built completely with VB6 or completely VB5.  Ensure there are no VB5 controls being used within your project and verify you are using Service Pack 3 (if you are in control of this)?
0
 
LVL 1

Expert Comment

by:Misledman
ID: 2523547
Excellent observation there PBuck. I've never tried that but I do know that I have some VB 5 controls in my toolbox.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question