Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 17th, 2004, 07:14 AM
Authorized User
 
Join Date: Aug 2003
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default DLL Out of Memory !!!!

We are using a Visual Basic DLL in our ASP page to do heavy computations(client's horoscope related computations).
We often face "Out of Memory" problem on the ASP page calling the DLL objects and it soon neeeds to be stopped and restarted.
We have set all the objects and resources to nothing , both in the VB DLL and the ASP page.

-Can anyone guide me what's the nub of the problem??

Thanks and regards
 
Old January 17th, 2004, 01:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

Well, there could be many things.

1) Have you tried to duplicate it via a non-asp program, so that you know if it is in the DLL or the ASP?
2) If you know it is in the DLL, then you may want to look for circular references. Lets say you have two objects (A & B). If A & B both have a reference to eachother, then setting them both to nothing in calling module does not remove them from memory. Because COM objects are not removed from memory until there are zero references to them. But in a circular reference, there are still one reference to A & one to B. So these never die, and the memory is never recovered until the the app is reset.
3) It could have to do with settings in IIS, COM+, or other technologies that you may be using.


John R Lick
[email protected]
 
Old January 17th, 2004, 02:14 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And even if you can't find the memory leak / problem, you could host the DLL inside a COM+ package that gets restarted automatically every once in a while.

This may help in freeing up memory before it's too late.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Install problems - VS 6.0 on XP SCRRUN.DLL PDM.DLL jeff4444 Visual C++ 0 December 6th, 2006 08:48 PM
How to convert .NET dll to COM dll used by VB 6.0 gvprashanth .NET Framework 1.x 0 December 4th, 2006 05:05 AM
The database dll crdb_oracle.dll could not be load Yeliz Crystal Reports 0 October 18th, 2006 08:12 AM
DLL & Excel - keep having to reset DLL reference! James Diamond Pro VB 6 2 May 25th, 2004 03:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.