Watch, Follow, &
Connect with Us
Public Report
Report From: EDN    [ Add a report in this area ]  
Report #:  138773   Status: Reported
REST.Client memory leak
Project:  EDN Build #:  Embarcadero┬« De
Version:    2 Submitted By:   Jim Gabriel
Report Type:  Issue Date Reported:  10/7/2016 10:22:09 AM
Severity:    Serious / Highly visible problem Last Updated:
Platform:    32 Bit Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Eureka log 7.5.0.0 is reporting a memory leak when using TRESTClient
Steps to Reproduce:
1)  Create new project
2)  Add the visual RESTClient, RESTResponse, etc
3)  No need to link.
4)  Save/Compile/Run
5)  Close application.  You'll see the errors below.


uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, IdCustomTCPServer, IdTCPServer,

  IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
  IPPeerCommon,
  Data.Bind.Components, Data.Bind.ObjectScope, REST.Client, IPPeerClient,
  Datasnap.DSClientRest, REST.Response.Adapter;

type
  TForm1 = class(TForm)
    RESTClient1: TRESTClient;
    RESTResponse1: TRESTResponse;
    RESTResponseDataSetAdapter1: TRESTResponseDataSetAdapter;
    DSRestConnection1: TDSRestConnection;
    RESTRequest1: TRESTRequest;

  private
    { Private declarations }

  public

  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

end.


-------------------------------------------
Error Report:
EurekaLog 7.5.0.0  

Exception:
----------------------------------------------------------------------
  2.2 Address: 00AF7D20
  2.5 Type   : EMemoryLeak
  2.6 Message: Application has leaked memory: Total size=112; Count=4.
  2.7 ID     : F2B80001
  2.11 Sent  : 0

User:
------------------
  3.2 Name : Btree
  3.3 Email:

Steps to reproduce:
------------
  8.1 Text:


Leaks Information:
-----------------------------------------------------------------------------------------------------------------------------------------------------------
|Methods |Details|Stack   |Address |Module          |Offset  |Unit          |Class      |Procedure/Method                                       |Line     |
-----------------------------------------------------------------------------------------------------------------------------------------------------------
|+Leak #1: Type=TThreadList; Total size=20; Count=1                                                                                                       |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|00000002|04     |00000000|00AF7D20|testIPClient.exe|006F7D20|IPPeerCommon  |           |Initialization                                         |1462[0]  |
|00000002|03     |00000000|76AD62BC|kernel32.dll    |000162BC|KERNEL32      |           |BaseThreadInitThunk                                    |         |
|00000002|03     |00000000|77EB0607|ntdll.dll       |00060607|ntdll         |           | (possible RtlSubscribeWnfStateChangeNotification+1079)|         |
|00000002|03     |00000000|77EB05CF|ntdll.dll       |000605CF|ntdll         |           | (possible RtlSubscribeWnfStateChangeNotification+1023)|         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                                                                                                         |
|+Leak #2: Type=TObject; Total size=8; Count=1                                                                                                            |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|00000002|04     |00000000|004DE3DE|testIPClient.exe|000DE3DE|System.Classes|TThreadList|Create                                                 |5002[2]  |
|00000002|03     |00000000|76AD62BC|kernel32.dll    |000162BC|KERNEL32      |           |BaseThreadInitThunk                                    |         |
|00000002|03     |00000000|77EB0607|ntdll.dll       |00060607|ntdll         |           | (possible RtlSubscribeWnfStateChangeNotification+1079)|         |
|00000002|03     |00000000|77EB05CF|ntdll.dll       |000605CF|ntdll         |           | (possible RtlSubscribeWnfStateChangeNotification+1023)|         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                                                                                                         |
|+Leak #3: Type=TList; Total size=20; Count=1                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|00000002|04     |00000000|004DE3ED|testIPClient.exe|000DE3ED|System.Classes|TThreadList|Create                                                 |5003[3]  |
|00000002|03     |00000000|76AD62BC|kernel32.dll    |000162BC|KERNEL32      |           |BaseThreadInitThunk                                    |         |
|00000002|03     |00000000|77EB0607|ntdll.dll       |00060607|ntdll         |           | (possible RtlSubscribeWnfStateChangeNotification+1079)|         |
|00000002|03     |00000000|77EB05CF|ntdll.dll       |000605CF|ntdll         |           | (possible RtlSubscribeWnfStateChangeNotification+1023)|         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                                                                                                         |
|+Leak #4: Type=Data at $08A7C6A0; Total size=64; Count=1                                                                                                 |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|00000002|04     |00000000|00409A79|testIPClient.exe|00009A79|System        |TMonitor   |Create                                                 |18091[5] |
-----------------------------------------------------------------------------------------------------------------------------------------------------------

Modules Information:
--------------------


Processes Information:
----------------------


Assembler Information:
----------------------


Registers:
----------
Workarounds
Disable Eureka log?
Attachment
None
Comments

None

Server Response from: ETNACODE01