Re: best way to track down a memory leak?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Your first stop should be task manager.

It's possible you're doing automation with, for instance, Word and every
time you run your app you start another instance of Word. It's not exactly
polite about memory usage and when you get 10 or so copies running can
really slow things down.

The task manager will tell you what exactly is consuming what.

Dan

tristan wrote:
> I use Win32 API's and have third party ActiveX controls, so I guess
> its possible they are causing the problem.
>
> Basically while testing our app by running and closing it mutiple
> times, after a few hours the machine needs a reboot, everything
> starts going very slowly, screen redraws slowly etc Haven't really
> check Task Manager memory usage, will monitor that soon.
>
>
>
>
> "Matthew L Reed" <nousenetspam at dead ice dot us> wrote in message
> news:%23r0jrTz3FHA.3876@xxxxxxxxxxxxxxxxxxxxxxx
>> I didn't think it was possible to create a memory leak with VFP,
>> since we don't have control over allocating and releasing memory,
>> however since it's written in c++ it is certainly possible that VFP
>> functions themself leak. What does the app do that makes you think
>> there is a memory leak? Have you monitored memory usage via task
>> manager?
>>
>>
>> "tristan" <tristan@xxxxxxxxxxxx> wrote in message
>> news:ugniuFz3FHA.2504@xxxxxxxxxxxxxxxxxxxxxxx
>>> Hi,
>>>
>>> I think that my app maybe leaking memory somewhere. What would be
>>> the best way to confirm this using VFP code? And if it is, any
>>> ideas how I could go about finding out where the problem is.
>>>
>>> Thanks
>>> Tristan


.



Relevant Pages

  • Re: why does minimizing my app cut mem usage by 90%?
    ... thanks for pointing it out. ... assertion that the values returned by task manager for program size are essentially ... It is worth pointing out that "minimizing" an app as he desires to do actually doesn't ... minimize its memory footprint; it merely pessimizes its performance, ...
    (microsoft.public.vc.mfc)
  • Re: Forms Creation Question
    ... Because the task manager on Pocket PC doesn't actually enumerate the ... it merely creates a list of the captions of all the ... > I show tons of instances of my app opened, only because a bunch of forms ... >>> but if I know that the forms are all created and reside in memory at ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Application performance decrease after deleting rows
    ... Many of the past posts regarding the task manager can ... This is not a good approach, because high memory ... It is important to remember that an app ... memory leaks in .NET apps. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Visual Studio 2005 is a memory hog!!
    ... > gonna call it a memory hog for this very same reason. ... >>> .NET app in the task manager usually misleading as the runtime takes more ... Did you measure memory footprint on the first run, or on subsequent? ...
    (microsoft.public.vsnet.general)
  • Re: Does DataGridView.Dispose Call DataGridViewRow.Dispose?
    ... The numbers which indicate a memory leak to me are collected by the app ... display CurrentMemory, LastMemory, and CurrentMemory-LastMemory ...
    (microsoft.public.dotnet.languages.vb)