Web Service Toolkit and memory leaks? lazarus / 13-General ---------------------------------------------------------------------- Dibo · 2009-03-27 16:25 Hi, I create WebService project like in this tutorial: http://wiki.lazarus.freepascal.org/Web_Service_Toolkit I check "use heaptrc" and when I open and close application I have some strange logs: Code: [Select]D:\Projekty\Lazarus\Test\dcu\Test.exe Heap dump by heaptrc unit 6562 memory blocks allocated : 664573/680048 6553 memory blocks freed     : 664417/679880 9 unfreed memory blocks : 156 True heap size : 589824 (112 used in System startup) True free heap : 588912 Should be : 589040 Call trace for block $000EC280 size 20   $0040A062   $0054978A  SYNAPSE_REGISTERHTTP_TRANSPORT,  line 184 of C:/lazarus/components/wst-0.5/synapse_http_protocol.pas   $00424988  BASESOAPTHREADUNIT_init,  line 284 of basesoapthreadunit.pas   $0040BEB4   $0040FF40 Call trace for block $000EC160 size 20   $0040A062   $0054A663  REGISTERSOAPPROTOCOL,  line 265 of C:/lazarus/components/wst-0.5/soap_formatter.pas   $0054A6E8  SOAP_FORMATTER_init,  line 271 of C:/lazarus/components/wst-0.5/soap_formatter.pas   $0040BEB4   $0040FF40 Call trace for block $000EC100 size 20   $0040A062   $0054A62A  REGISTERSOAPPROTOCOL,  line 267 of C:/lazarus/components/wst-0.5/soap_formatter.pas   $0054A6E8  SOAP_FORMATTER_init,  line 271 of C:/lazarus/components/wst-0.5/soap_formatter.pas   $0040BEB4   $0040FF40   $0054A5F4  REGISTERSOAPPROTOCOL,  line 262 of C:/lazarus/components/wst-0.5/soap_formatter.pas   $0054A6E8  SOAP_FORMATTER_init,  line 271 of C:/lazarus/components/wst-0.5/soap_formatter.pas   $0040BEB4 Call trace for block $000E1D38 size 16   $0040CAFB   $0042D927   $0042D755   $00549030  WSDL_PROXY_init,  of wsdl_proxy.pas   $0040BEB4   $0040FF40 Call trace for block $000EA1E0 size 24   $0040A062   $0042D755   $00549030  WSDL_PROXY_init,  of wsdl_proxy.pas   $0040BEB4   $0040FF40   $0040BEB4   $0040FF40 Call trace for block $000E1CE8 size 16   $0040A062   $0042DFB7   $0042D69F   $00558365  TCOLLECTIONRESOURCEMANAGER__CREATE,  line 205 of C:/lazarus/components/wst-0.5/wst_resources_imp.pas   $0055843F  GETWSTRESOURCEMANAGER,  line 223 of C:/lazarus/components/wst-0.5/wst_resources_imp.pas   $00549016  WSDL_PROXY_init,  line 1 of wsdl.wst   $0040BEB4   $0040FF40 Call trace for block $000E1C98 size 8   $0040A062   $0042D69F   $00558365  TCOLLECTIONRESOURCEMANAGER__CREATE,  line 205 of C:/lazarus/components/wst-0.5/wst_resources_imp.pas   $0055843F  GETWSTRESOURCEMANAGER,  line 223 of C:/lazarus/components/wst-0.5/wst_resources_imp.pas   $00549016  WSDL_PROXY_init,  line 1 of wsdl.wst   $0040BEB4   $0040FF40 Call trace for block $000EA180 size 24   $0040A062   $00558365  TCOLLECTIONRESOURCEMANAGER__CREATE,  line 205 of C:/lazarus/components/wst-0.5/wst_resources_imp.pas   $0055843F  GETWSTRESOURCEMANAGER,  line 223 of C:/lazarus/components/wst-0.5/wst_resources_imp.pas   $00549016  WSDL_PROXY_init,  line 1 of wsdl.wst   $0040BEB4   $0040FF40   $0040FF40 Call trace for block $000E1C48 size 8   $0040A062   $0055843F  GETWSTRESOURCEMANAGER,  line 223 of C:/lazarus/components/wst-0.5/wst_resources_imp.pas   $00549016  WSDL_PROXY_init,  line 1 of wsdl.wst   $0040BEB4   $0040FF40   $0040FF40 "basesoapthreadunit" is my own soap manager where I call soap functions. "wsdl" and "wsdl_proxy" are units created automaticaly by WSDL importer. Are this memory leaks important? Because, when I call some soap functions, number of memory leaks still grow up (after call 3 functions, number is ~256 and I remember to free input and results objects, all memory leaks is in WST source code files). So, WST is unstable or heaptrc is hypersensitive? ---------------------------------------------------------------------- inoussa · 2009-03-31 00:04 Hi WST is stable. The reported items are related to the units initialization and finalization only. Please check out the current WST at https://lazarus- ccr.svn.sourceforge.net/svnroot/lazarus-ccr/wst/trunk By the way, I rarely read this forum, you better post at the WST dedicated list http://groups.google.com/group/wst-list Best regards.