Solved

Memory leak - running Business objects from a VB app

Posted on 2000-02-14
4
304 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now