Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

asp.net with BDS 2006 and Tdatamodule memory leak problem

5 views
Skip to first unread message

marko

unread,
Aug 3, 2008, 6:57:13 AM8/3/08
to
Hi
I develop my web aplications on BDS2006 with use Tdatamodule.
I use TDatamodule and free end of session. I take a memory dump on the
other day for increase memory problem .
I see not decrease Tdatamodule count.
I wirite a test app for this situation.

procedure TWebForm1.Button1_Click(sender: System.Object; e:
System.EventArgs);
var
DM:TDataModule1;
index:integer;
begin
for Index := 0 to 500 do begin
DM:=TDataModule1.Create(nil);
DM.free;
end;
end;

run this web app and take a full memory dump for worker process. Open dump
file with Windbg and look at statstics. result is;

MT Count TotalSize Class Name
4729724 501 26052 DM01.TDataModule1


what does it mean?


Wayne Niddery (TeamB)

unread,
Aug 3, 2008, 10:36:59 AM8/3/08
to
"marko" <MA...@POLO.COM> wrote in message
news:48958efe$1...@newsgroups.borland.com...

>
> procedure TWebForm1.Button1_Click(sender: System.Object; e:
> System.EventArgs);
> var
> DM:TDataModule1;
> index:integer;
> begin
> for Index := 0 to 500 do begin
> DM:=TDataModule1.Create(nil);
> DM.free;
> end;
> end;
>
> run this web app and take a full memory dump for worker process. Open dump
> file with Windbg and look at statstics. result is;
>
> MT Count TotalSize Class Name
> 4729724 501 26052 DM01.TDataModule1
>
> what does it mean?


Are you actually running out of memory and getting errors? As far as I know
all this is telling you is that this much memory has been allocated by your
application, but not necessarily that it is still all in use.


--
Wayne Niddery - TeamB (www.teamb.com)
Winwright, Inc. (www.winwright.ca)

0 new messages