{"id":510,"date":"2015-08-30T13:12:22","date_gmt":"2015-08-30T04:12:22","guid":{"rendered":"http:\/\/naraeon.net\/?p=510"},"modified":"2024-09-24T22:43:38","modified_gmt":"2024-09-24T13:43:38","slug":"%eb%8d%b8%ed%8c%8c%ec%9d%b4%ec%97%90%ec%84%9c-%ec%8b%b1%ea%b8%80%ed%84%b4-%eb%a9%94%eb%aa%a8%eb%a6%ac-%eb%88%84%ec%88%98-%ec%97%86%ec%9d%b4-create-%eb%ac%b8%ec%a0%9c-%ec%97%86%ec%9d%b4-%ea%b5%ac","status":"publish","type":"post","link":"https:\/\/www.naraeon.net\/en\/%eb%8d%b8%ed%8c%8c%ec%9d%b4%ec%97%90%ec%84%9c-%ec%8b%b1%ea%b8%80%ed%84%b4-%eb%a9%94%eb%aa%a8%eb%a6%ac-%eb%88%84%ec%88%98-%ec%97%86%ec%9d%b4-create-%eb%ac%b8%ec%a0%9c-%ec%97%86%ec%9d%b4-%ea%b5%ac\/","title":{"rendered":"\ub378\ud30c\uc774\uc5d0\uc11c \uc2f1\uae00\ud134 \uba54\ubaa8\ub9ac \ub204\uc218, Create \ubb38\uc81c \uc5c6\uc774 \uad6c\ud604\ud558\uae30"},"content":{"rendered":"<p>\ub378\ud30c\uc774\uc5d0\uc11c \uc2f1\uae00\ud134\uc744 \ud55c\ub2e4\uace0 \ud558\uba74 \ubcf4\ud1b5 \ub2e4\uc74c\uacfc \uac19\uc740 \uc18c\uc2a4\ub97c \ub9ce\uc774 \uc81c\uc2dc\ud55c\ub2e4.<\/p>\n<p><a href=\"http:\/\/blog.naver.com\/jsf3rd\/51579487\" target=\"_blank\" rel=\"noopener\">\ub378\ud30c\uc774\uc5d0\uc11c \uc2f1\uae00\ud134 \uad6c\ud604&#8230;<\/a><\/p>\n<p>\uc774\ub7f0 \uc18c\uc2a4\uc758 \ubb38\uc81c\ub294<br \/>\n<strong>1. \uc885\ub8cc\ud560 \ub54c \ud574\uc81c\uac00 \uc548 \ub41c\ub2e4\ub294 \uc810<br \/>\n2. \uc5ec\uc804\ud788 Create\uac00 \uac00\ub2a5\ud558\ub2e4\ub294 \uc810<\/strong><br \/>\n\uc774 \uc788\ub2e4.<\/p>\n<p>\uccab\uc9f8\uc758 \uacbd\uc6b0 \uc2f1\uae00\ud134\uc758 \ud2b9\uc131\uc0c1 \ub204\uc218\uc758 \uc591\uc774 \ub9ce\uc544\uc11c \ubb38\uc81c\uac00 \ub418\ub294 \uac74 \uc544\ub2c8\ub2e4. \uc5b4\ucc28\ud53c \uc778\uc2a4\ud134\uc2a4\ub294 \ud558\ub098\ub9cc \uc874\uc7ac\ud558\uae30 \ub54c\ubb38\uc774\ub2e4.<br \/>\n\uadf8\ub7ec\ub098 ReportMemoryLeaksOnShutdown\uac19\uc740 \uc635\uc158\uc744 \uc4f4\ub2e4\uba74 \uacbd\uace0\uac00 \uc2e0\uacbd\uc4f0\uc774\uba70 \uc798\ubabb\ud558\uba74 \uc9c4\uc9dc \ub204\uc218\ub97c \ucc3e\uc9c0 \ubabb\ud558\uac8c \ub420 \uc218\ub3c4 \uc788\ub2e4.<\/p>\n<p>\ub458\uc9f8\uc758 \uacbd\uc6b0\ub294 \uadf8 \uc790\uccb4\ub9cc\uc73c\ub85c\ub3c4 \uce58\uba85\uc801\uc774\ub2e4.<br \/>\n\ub2e4\ub978 \uc5b8\uc5b4 \uc2f1\uae00\ud134 \uad6c\ud604\uc744 \ubcf4\uace0 \uad6c\ud604\ud558\ub294 \uacbd\uc6b0 private \uc0dd\uc131\uc790 Create\ub97c \ub9cc\ub4e4\uac8c \ub9c8\ub828\uc778\ub370, \ub378\ud30c\uc774\uc5d0\uc120 \uadf8\ub807\uac8c \ud574\ub3c4 public constructor Create\ub294 \uadf8\ub300\ub85c \ub0a8\uc544\uc788\ub2e4.<br \/>\npublic\uc73c\ub85c \uc120\uc5b8\ub41c TObject.Create\ub294 private \uc0dd\uc131\uc790\ub85c\ub294 \uac00\ub9b4 \uc218\uac00 \uc5c6\uae30 \ub54c\ubb38\uc774\ub2e4!<\/p>\n<p>\uacb0\ub860\uc801\uc73c\ub85c \uc18c\uc2a4\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uad6c\ud604\ud558\uba74 \uc704\uc758 \ub450 \ubb38\uc81c\ub97c \ud574\uacb0\ud560 \uc218 \uc788\ub2e4 (\uc704\uc758 \uc6d0\ubcf8 \uc18c\uc2a4\uc5d0\uc11c \uc218\uc815\ud558\uc600\ub2e4).<br \/>\n\ubb3c\ub860 Destroy\ub97c \uc9c1\uc811 \ubd80\ub974\uac70\ub098 FreeAndNil\ub85c \uc81c\uac70\ud558\ub294 \ub4f1\uc758 \uc0c1\ud669\uc5d0\uc11c\ub294 \ucc38\uc0ac\ub97c \ub9c9\uc9c0 \ubabb\ud558\uaca0\uc9c0\ub9cc, \uc801\uc5b4\ub3c4 \uc77c\ubc18\uc801\uc778 \uc0c1\ud669\uc5d0\uc11c \ub098\ud0c0\ub0a0 \uc218 \uc788\ub294 \uc2e4\uc218\ub294 \ub9ce\uc740 \ubd80\ubd84 \ub9c9\uc744 \uc218 \uc788\ub2e4.<\/p>\n<p>[snippet slug=delphi-singleton lang=pascal]<\/p>\n<p>\uc6d0\ub798 \uc0dd\uc131\uc790\uc640 \ud30c\uad34\uc790 \ucf54\ub4dc\uc5d0 \ub4e4\uc5b4\uac00\uc57c \ud560 \ucf54\ub4dc\ub294 \/\/Write constructor, \/\/Write destructor\ub85c \uc2dc\uc791\ud558\ub294 \ubd80\ubd84\uc5d0 \uac01\uac01 \ub123\uc5b4\uc8fc\uba74 \ub41c\ub2e4.<br \/>\n\uc0ac\uc2e4 FreeAndNil\uac19\uc740 \uac83\ub3c4 \ud50c\ub798\uadf8 \ud558\ub098\ub97c \ub354 \ub123\uc73c\uba74 \ub9c9\uc744 \uc218 \uc788\uaca0\uc9c0\ub9cc \uc774 \uc0c1\ud0dc\ub3c4 \uc774\ubbf8 \ud589\uc0ac \ucf54\ub4dc\uac00 \ub108\ubb34 \uae38\uc5b4\uc11c \ub123\uc9c0 \uc54a\uc558\ub2e4.<br \/>\n\ud589\uc0ac \ucf54\ub4dc\uac00 \uc0c1\ub2f9\ud788 \uae38\uc5b4\uc11c \ub9c8\uc74c\uc5d0 \ub4e4\uc9c0\ub294 \uc54a\uc9c0\ub9cc \uc774 \uc815\ub3c4\ub294 \ub418\uc5b4\uc57c \ud0c0 \uc5b8\uc5b4 \uc2f1\uae00\ud134 \uad6c\ud604\uc5d0 \uac00\uae4c\uc6b4 \ud3b8\uc758\uc131\uc744 \uc9c0\ub2c8\uac8c \ub418\ub2c8, \ub9e4\uc6b0 \uc548\ud0c0\uae5d\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub378\ud30c\uc774\uc5d0\uc11c \uc2f1\uae00\ud134\uc744 \ud55c\ub2e4\uace0 \ud558\uba74 \ubcf4\ud1b5 \ub2e4\uc74c\uacfc \uac19\uc740 \uc18c\uc2a4\ub97c \ub9ce\uc774 \uc81c\uc2dc\ud55c\ub2e4. \ub378\ud30c\uc774\uc5d0\uc11c \uc2f1\uae00\ud134 \uad6c\ud604&#8230; \uc774\ub7f0 \uc18c\uc2a4\uc758 \ubb38\uc81c\ub294 1. \uc885\ub8cc\ud560 \ub54c \ud574\uc81c\uac00 \uc548 \ub41c\ub2e4\ub294 \uc810 2. \uc5ec\uc804\ud788 Create\uac00 \uac00\ub2a5\ud558\ub2e4\ub294 \uc810 \uc774 \uc788\ub2e4. \uccab\uc9f8\uc758 \uacbd\uc6b0 \uc2f1\uae00\ud134\uc758 \ud2b9\uc131\uc0c1 \ub204\uc218\uc758 \uc591\uc774 \ub9ce\uc544\uc11c \ubb38\uc81c\uac00 \ub418\ub294 \uac74 \uc544\ub2c8\ub2e4. \uc5b4\ucc28\ud53c \uc778\uc2a4\ud134\uc2a4\ub294 \ud558\ub098\ub9cc \uc874\uc7ac\ud558\uae30 \ub54c\ubb38\uc774\ub2e4. \uadf8\ub7ec\ub098 ReportMemoryLeaksOnShutdown\uac19\uc740 \uc635\uc158\uc744 \uc4f4\ub2e4\uba74 \uacbd\uace0\uac00 \uc2e0\uacbd\uc4f0\uc774\uba70 \uc798\ubabb\ud558\uba74 \uc9c4\uc9dc \ub204\uc218\ub97c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[34,33,31,30],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-delphi-tip","tag-delphi","tag-singleton","tag-31","tag-30"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["kr","en"],"languages":{"kr":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":false,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":17,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":2956,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/posts\/510\/revisions\/2956"}],"wp:attachment":[{"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}