Login  
Search All Forums
Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web Enterprise for ActiveX
Topic: Memory leak in WebASP in your example application (!!!!!!)
Rio

From: Moscow, Russia
Posts: 22
Member Since: 11/12/01
posted June 25, 2002 2:04 PM

Hi!

Please do next steps:
1)Take your example
...\PowerTCP\Web Enterprise Tool\Samples\WebASP\Bcb5\PostDemo\PostDemo.bpr
2)Compile an run it under Win2000
3)Run TaskManager and check memory allocated by PostDemo
4)Repeatly press POST button in PostDemo
5)After each press check memory allocated by PostDemo

You'll see some memoky leak

If you change URL to another (for examle wwww.mts.ru), you'll see more effect

real examle (post to wwww.mts.ru):
post N1 memory 7960 kb
post N2 memory 8020 kb
post N3 memory 8052 kb
post N4 memory 8084 kb
post N5 memory 8116 kb
post N6 memory 8148 kb

it easy to see that each step increase allocated
memory to 32Kb.
IMHO it depends to HTML page size and it because
WebAsp can't correctly clear Response property/

Excuse me for my poor English,
i hope you understand me
:-)))
 





Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 25, 2002 5:27 PM

I checked every sample and the only one that leaks is BCB. That means something is not being freed inside the BCB library.

You should probably report this issue to Borland.


Rio

From: Moscow, Russia
Posts: 22
Member Since: 11/12/01
posted June 26, 2002 2:11 AM

May be, BUT CodeGuard don't fix any memory leakage...
Rio

From: Moscow, Russia
Posts: 22
Member Since: 11/12/01
posted June 26, 2002 3:28 AM

The point of memory leakage is

  WebASP1->Response->Body->ReadString(0);

May be error is located in Borland's wrapper? created for WebASP?

How can i release the memory, allocated by
"WebASP1->Response->Body->ReadString(0)"?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 26, 2002 9:01 AM

Actually it's not there as I can comment out that I line and I still see the leak. The leak is occurring because BCB is probably not destroying the IHttpVariableDisp object when we clear release it internally.

When you report this to Borland, make sure that you explain that Delphi does it correctly so that they know that another of their products works.



Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX