Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/RTL/Delphi/Memory, Pointer, Address    [ Add a report in this area ]  
Report #:  27069   Status: Closed
Problem with ReportMemoryLeaksOnShutdown and IInterface
Project:  Delphi Build #:  1
Version:    10.0 Submitted By:   Marcus Vinicius Braga
Report Type:  Basic functionality failure Date Reported:  4/6/2006 12:44:57 PM
Severity:    Serious / Highly visible problem Last Updated: 4/16/2006 3:44:21 PM
Platform:    All versions Internal Tracking #:  
Resolution: Test Case Error (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (3 Total Ratings)
2.33 out of 5
Total Votes: None
Description
English Version:

Hello,
When I initiate, together with the Form, an object of the IMyTest type (IInterface) and I close the form, the ReportMemoryLeaksOnShutdown informs that it my object was not set free of the memory.  
Why this is happening?


Portuguese (BR) Version:

Ola,  
Quando eu inicio, juntamente com o Formulario, um objeto do tipo IMyTest (IInterface) e fecho o formulario, o ReportMemoryLeaksOnShutdown informa que o meu objeto nao foi liberado da memoria.
Por que isto esta acontecendo?  
Steps to Reproduce:
Please see the Attachments.
Workarounds
None
Attachment
ReportMemoryLeaksOnShutdown and Interface.zip
Comments

Dimitry Timokhov at 4/6/2006 3:02:46 PM -
It's yours error.

Class TMyTest doesn't support reference counting.




Marcus Vinicius Braga at 4/7/2006 7:33:42 AM -
Hello,
IMyTest descends of the TInterfacedPersistent and it isn't implements reference count.
Now it's descending of the TInterfaceObject and the application is running ok.
Thanks a lot.

Server Response from: ETNACODE01