From: Ahmad on
Hi,

I have developed an application in VB6 and if I run that executable ( for 40
hours continously) it keeps on increasing virtual memory until I recieve an
error like no more memory can be allocated. I have two machines and this
problem come only on one machine, I believe memory is managed by COM runtime
or VB runtime in VB6 by reference counting.

Can you please help me how can I solve this problem?

Best Regards
Ahmad
From: Nobody on
"Ahmad" <Ahmad(a)discussions.microsoft.com> wrote in message
news:B4F5F26A-F40B-454F-94C3-98DFC62AC64B(a)microsoft.com...
> Hi,
>
> I have developed an application in VB6 and if I run that executable ( for
> 40
> hours continously) it keeps on increasing virtual memory until I recieve
> an
> error like no more memory can be allocated. I have two machines and this
> problem come only on one machine, I believe memory is managed by COM
> runtime
> or VB runtime in VB6 by reference counting.
>
> Can you please help me how can I solve this problem?

Not enough information. In Task Manager, go to View-->Select Column, and
enable "Handle Count" and "GDI Objects". Also, try using this tool:

GDIView v1.04 - View GDI handles/resources list and detect GDI leaks
http://www.nirsoft.net/utils/gdi_handles.html

If you are using "Set", you need to use it again to set the reference to
"Nothing" when you are done. If you are using dynamic arrays, use Erase
statement to free the array. For Strings, set the string variable to empty
string "".

If you are opening files, you need to close them. If you are using API
functions such as OpenProcess or similar, you need to close the handle.

If you have a Timer that checks periodically for something, then check the
code that it executes. Try disabling the Timer and see if resource usage is
increasing.


From: Dee Earley on
On 09/03/2010 06:16, Ahmad wrote:
> Hi,
>
> I have developed an application in VB6 and if I run that executable ( for 40
> hours continously) it keeps on increasing virtual memory until I recieve an
> error like no more memory can be allocated. I have two machines and this
> problem come only on one machine, I believe memory is managed by COM runtime
> or VB runtime in VB6 by reference counting.
>
> Can you please help me how can I solve this problem?

Can you provide your code?

We have nothing to go on from you bar "something leaks memory"

--
Dee Earley (dee.earley(a)icode.co.uk)
i-Catcher Development Team

iCode Systems
From: Helmut Meukel on
Ahmad,

please provide some more information so we can help you.
What are the differences between the 2 machines?
RAM size, OS version, pagefile size?
Is the problem really only with one machine ore are the
diffenences in memory size of the 2 machines so vast that on
the second machine the programm could run say 300 hours
until it has consumed all available memory there?

Helmut.

"Ahmad" <Ahmad(a)discussions.microsoft.com> schrieb im Newsbeitrag
news:B4F5F26A-F40B-454F-94C3-98DFC62AC64B(a)microsoft.com...
> Hi,
>
> I have developed an application in VB6 and if I run that executable ( for 40
> hours continously) it keeps on increasing virtual memory until I recieve an
> error like no more memory can be allocated. I have two machines and this
> problem come only on one machine, I believe memory is managed by COM runtime
> or VB runtime in VB6 by reference counting.
>
> Can you please help me how can I solve this problem?
>
> Best Regards
> Ahmad

 | 
Pages: 1
Prev: Creating a Lookup Table
Next: Parsing Question