´ñ±Û : 3 °³
Çѱ¹ µ¨ÆÄÀÌ µ¿È£È¸ µ¨¸¶´ç
¹ä¹ú·¹
()
 
¿À¿Ê..¸ÚÁý´Ï´Ù.. ¹º°¡ °£°áÇÑ°ÍÀÌ ¶°¿À¸¦µí ÇÏ´Ù ¸»¾Ò¾ú´Âµ¥.. ¹Ù·Î À̹æ¹ýÀÌ ÀÖ¾ú³×¿ä...! 
2005-10-15
¤Ñ,.¤Ñ
()
 
°£¸¸¿¡ °­Á´ٿò. 
2005-10-15
¹ß¹Ù´ß
(·ùÀç¿í)
 
System.pas¿¡ Æ÷ÇԵǾî Àִ TInterfacedObject´Â RefCount¸¦ °ü¸®ÇÏ´Ù°¡ 0ÀÌ µÇ´Â ¼ø°£ ¸Þ¸ð¸®¿¡¼­ ÇØÁ¦Çϴ Äڵ尡 Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

function TInterfacedObject._Release: Integer;
begin
  Result := InterlockedDecrement(FRefCount);
  if Result = 0 then
    Destroy;
end;

À̺κÐÀä. Áï, ½Ã½ºÅÛ¿¡¼­ »ç¿ëÀÌ ³¡³­ Interface¿¡ ´ëÇØ _Release¸¦ ÀÚµ¿À¸·Î È£ÃâÇØÁÖ°í, ±× ½ÃÁ¡¿¡¼­ ¸Þ¸ð¸® ÇØÁ¦°¡ ÀϾ³´Ï´Ù. 

Á»´õ À§·Î ¿Ã¶ó°¡¸é function _IntfClear(var Dest: IInterface): Pointer; ÇÔ¼ö¿¡¼­ ÇØÁִ°Űí.. 
2011-02-11 ¿ÀÀü 10:16:27