Prev: Creating a Lookup Table
Next: Parsing Question
From: Ahmad on 9 Mar 2010 01:16 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 9 Mar 2010 04:37 "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 10 Mar 2010 07:44 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 10 Mar 2010 08:19 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 |