 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tobias Giesen Guest
|
Posted: Tue May 15, 2007 4:03 am Post subject: Memory used but not caught by FastMM |
|
|
Hello,
under some circumstances, Task Manager shows that my BDS 2006 Delphi app
gradually uses more and more memory as time passes. I use FastMM 4.78, and
it turns out that the added memory is not allocated via FastMM. But to the
best of my knowledge, I am not allocating any memory directly with the
operating system.
My question is: in what ways can applications lose memory other than via
Delphi's memory allocation? Are WideStrings managed by the installed memory
manager? What type of memory allocations aren't?
Thanks for any hints!
Cheers,
Tobias |
|
| Back to top |
|
 |
Thorsten Engler [NexusDB] Guest
|
Posted: Tue May 15, 2007 6:23 am Post subject: Re: Memory used but not caught by FastMM |
|
|
Tobias Giesen wrote:
| Quote: | Hello,
under some circumstances, Task Manager shows that my BDS 2006 Delphi
app gradually uses more and more memory as time passes. I use FastMM
4.78, and it turns out that the added memory is not allocated via
FastMM. But to the best of my knowledge, I am not allocating any
memory directly with the operating system.
My question is: in what ways can applications lose memory other than
via Delphi's memory allocation? Are WideStrings managed by the
installed memory manager? What type of memory allocations aren't?
|
Are you using widestrings or OleVariants containing strings? Or
generally, using any dlls, or COM objects?
-- |
|
| Back to top |
|
 |
Tobias Giesen Guest
|
Posted: Tue May 15, 2007 6:26 am Post subject: Re: Memory used but not caught by FastMM |
|
|
| Quote: | Are you using widestrings or OleVariants containing strings? Or
generally, using any dlls, or COM objects?
|
Mostly WideStrings, thousands of them. How can I find WideString leaks?
Cheers,
Tobias |
|
| Back to top |
|
 |
Thorsten Engler [NexusDB] Guest
|
Posted: Tue May 15, 2007 8:04 am Post subject: Re: Memory used but not caught by FastMM |
|
|
Tobias Giesen wrote:
| Quote: | Are you using widestrings or OleVariants containing strings? Or
generally, using any dlls, or COM objects?
Mostly WideStrings, thousands of them. How can I find WideString
leaks?
|
WideStrings are allocated and freed by the compiler. It would take some
work to manage to leak them.
What you are seeing is most likely the OS heap using up memory and
getting fragmented. There isn't much you can do about that.
-- |
|
| Back to top |
|
 |
Tobias Giesen Guest
|
Posted: Tue May 15, 2007 4:41 pm Post subject: Re: Memory used but not caught by FastMM |
|
|
| Quote: | What you are seeing is most likely the OS heap using up memory and
getting fragmented. There isn't much you can do about that.
|
I thought about that too, but I was losing 50-100 MB in a few hours. So I
installed AQtime and it points me directly to the leaks!
Cheers,
Tobias |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|