BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Memory used but not caught by FastMM

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
Tobias Giesen
Guest





PostPosted: Tue May 15, 2007 4:03 am    Post subject: Memory used but not caught by FastMM Reply with 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?

Thanks for any hints!

Cheers,
Tobias
Back to top
Thorsten Engler [NexusDB]
Guest





PostPosted: Tue May 15, 2007 6:23 am    Post subject: Re: Memory used but not caught by FastMM Reply with quote



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





PostPosted: Tue May 15, 2007 6:26 am    Post subject: Re: Memory used but not caught by FastMM Reply with quote



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





PostPosted: Tue May 15, 2007 8:04 am    Post subject: Re: Memory used but not caught by FastMM Reply with quote

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





PostPosted: Tue May 15, 2007 4:41 pm    Post subject: Re: Memory used but not caught by FastMM Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.