'lo - question on interfaces and reference counting/freeing.

I'm creatng an interface in Kylix, thats not descended from 
TInterfacedObject, so I'm adding _Addref _Release and QueryInterface myself 
(I'm descending from TPersistent), in _Addref and _Release I'm simply 
returning 1, which I've seen mentioned I should do elsewhere on the net, 
but I was wondering what I do in the case of freeing my classes, or is the 
reference counting working already?

I note if I try and .Free the instance of my interface, I get an 
exception...



                                    -- \m/ --
  "...if I seem super human I have been misunderstood." (c) Dream Theater
         [EMAIL PROTECTED] - ICQ: 1934853 JID: [EMAIL PROTECTED]

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to