O/H dennis έγραψε:
> During to find out what is happening if found the follow part of code to be
> responsible for the undeserved increase of memory occupied from the
> application!!!
>
> if (targetcp='737') then result:=result+cp737[foundinsource];
>
> if (targetcp='928') then result:=result+cp928[foundinsource];
>
> If I remove the above code there no increasment at all.
>
> This problem occurred on huge calculations and call of this function. The
> memory size I see it from the process from task manager of my application.
>
> Targetcp and cp737 are simple string. Foundinsource is integer (that always
> has proper value (range check is checked)). Result is the result of the
> function.
Is Result initialized?
What is the Result type? Is it a string? A wide string perhaps?
And then how Result is used?
Are you just concatenating strings here?
What is the memory increase you get after a call like that?
If just strings involved then this memory increase issue is really strange.
> Delphi version 7. System Vista.
>
> I n general I see that Delphi 7 has not good relation with vista's memory,
> for instance if you reset several times your application from delphi's ide
> during debugging, you will see the process Delphi.exe to have extreme
> megabytes occupied memory.
I use Delphi 7 with WinXP.
This issue you're describing, perhaps has to do with how Vista
uses memory and not Delphi. Just a thought.
Do you get the same increase memory results with XP too?
Or it is just a Vista related issue?
Do you use FastMM memory manager?
Give it a try.
--
Regards
Theo
------------------------
Theo Bebekis
Thessaloniki, Greece
------------------------
Greek_Delphi_Prog : a Delphi Programming mailing list in Greek at
http://groups.yahoo.com/group/Greek_Delphi_Prog
CSharpDotNetGreek : A C# and .Net mailing list in Greek language at
http://groups.yahoo.com/group/CSharpDotNetGreek
atla_custom : a Unisoft Atlantis Customization mailing list at
http://groups.yahoo.com/group/atla_custom
------------------------
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/delphi-en/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/