RE: SOAP memory leak problem

Mike Smit <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <61ED07C6E585D611B30000D0B7B89CF18CCB10@bajhb02.softgroup.com.local>
A word of advice - IMO - NEVER rely on Delphi's garbage collection. IE: If
you allocate memory for anything, take care of freeing it too. I have had
huge memory leaks in the past because I used to let Delphi free my objects
for me.

-----Original Message-----
From: Sencer Sultanoglu [mailto:[email protected]] 
Sent: 16 July 2003 05:05 AM
To: [email protected]
Subject: RE: [Delphi] SOAP memory leak problem

Hi,
I do not free when closing application if I use THTTPRio.Create(nil) because
it should be automatically freed. Problem occurs consecutive calls of a
ServerFunction, without any attempt to close application. If I create and
free SOAP component for each server function call same problem continues.

Thanks,

Sencer

-----Original Message-----
From: Daniel Rail [mailto:[email protected]]
Sent: Wednesday, July 16, 2003 2:27 PM
To: [email protected]
Subject: Re: [Delphi] SOAP memory leak problem


Hi,

At July 16, 2003, 03:53, Sencer Sultanoglu wrote:

> We are using delphi 7 and windowsXP.  If we do consecutive calls to a
> soapServer function memory usage of the application increases periodically
> with value of 4K, as we can see from Windows Task Manager. Is this a
> component bug or should we do some special operation?

> Code is below.   Creating SOAP component as   SOAP :=
THTTPRio.Create(nil);
> or SOAP := THTTPRio.Create(form1); does not make any difference. Soaptest
is
> a simple server function that returns true.

Where do you free your SOAP component?  It's not necessarily freed
when the application closes.  And, that could correspond to your 4K.

--
Best regards,
 Daniel Rail
 Senior System Engineer
 ACCRA Group Inc. (www.accra.ca)
 ACCRA Med Software Inc. (www.filopto.com)



CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
---------------------------------------------------------------

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Control Hunger EZ with fast acting oral EZ Appetite Suppressant Spray
from VitaminBoost.com. 1 Month Supply - 2oz., 80 sprays: $19.97.
http://www.challengerone.com/t/l.asp?cid=2866&lp=ezappetite3.html
http://us.click.yahoo.com/aSJFwB/XWXGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.