{"id":3008,"date":"2015-11-08T14:16:53","date_gmt":"2015-11-08T06:16:53","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=3008"},"modified":"2015-11-08T14:16:53","modified_gmt":"2015-11-08T06:16:53","slug":"%e6%9d%82%e8%b0%88%e5%86%85%e5%ad%98%e6%b3%84%e9%9c%b2%e7%9a%84%e5%89%8d%e7%94%9f%e4%bb%8a%e4%b8%96","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=3008","title":{"rendered":"[\u6742\u8c08]\u5185\u5b58\u6cc4\u9732\u7684\u524d\u751f\u4eca\u4e16"},"content":{"rendered":"<p><strong>1\u3001\u4ec0\u4e48\u662f\u5185\u5b58\u6cc4\u9732\uff0c\u5185\u5b58\u6cc4\u9732\u6709\u4ec0\u4e48\u5371\u5bb3\uff1f<\/strong><\/p>\n<p>\u5185\u5b58\u6cc4\u9732\u662f\u6307\u7a0b\u5e8f\u4e2d\u7533\u8bf7\u4e86\u5185\u5b58\u4f7f\u7528\u540e\uff0c\u6ca1\u6709\u6b63\u786e\u91ca\u653e\uff08\u5982 new[] \u5206\u914d\u7684\u5185\u5b58\uff0c\u7528 delete \u91ca\u653e\uff09\u6216\u8005\u6839\u672c\u5c31\u5fd8\u4e86\u91ca\u653e\uff0c\u4ece\u800c\u5728\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u4e00\u76f4\u5360\u7528\u7740\u5185\u5b58\u7a7a\u95f4\u7684\u95ee\u9898\u3002<\/p>\n<p>\u5185\u5b58\u6cc4\u9732\u672c\u8eab\u6ca1\u4ec0\u4e48\u7279\u522b\u5927\u7684\u5371\u5bb3\uff08\u9b3c\u624d\u4fe1~~~\uff09\uff0c\u552f\u4e00\u7684\u95ee\u9898\u662f\uff1a\u8fd9\u5757\u5185\u5b58\u533a\u57df\u88ab\u5360\u7740\u5730\u65b9\u4e0d\u653e\uff0c\u6ca1\u6cd5\u62ff\u6765\u5e72\u522b\u7684\u7528\u4e86\u3002<\/p>\n<p>\u597d\u5427\uff0c\u4e00\u5757\u4e24\u5757\u7684\u5185\u5b58\u6cc4\u9732\uff0c\u53ef\u80fd\u4e0d\u4f1a\u9020\u6210\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u4e16\u754c\u4e0a\u51e1\u4e8b\u5c31\u6015\u5f62\u6210\u89c4\u6a21\uff0c\u5f53\u4f60\u7684\u5185\u5b58\u6cc4\u9732\u7684\u6570\u91cf\u8db3\u591f\u591a\uff0c\u5c31\u53ef\u80fd\u5c06\u4f60\u7cfb\u7edf\u4e2d\u53ef\u7528\u7684\u5185\u5b58\u7ed9\u5168\u90e8\u5360\u5b8c\uff0c\u5f53\u4f60\u771f\u6b63\u9700\u8981\u5185\u5b58\u7a7a\u95f4\u65f6\uff0c\u4f60\u4f1a\u53d1\u73b0\u6ca1\u5730\u65b9\u4e86\uff01\u7136\u540e\u4f60\u7684\u7a0b\u5e8f\u600e\u4e48\u529e\uff1f\u53cd\u6b63\u6211\u4e0d\u77e5\u9053\u8be5\u600e\u4e48\u529e\uff0c\u6240\u4ee5\u7a0b\u5e8f\u5d29\u6e83\u4f30\u8ba1\u662f\u552f\u4e00\u7684\u7ed3\u5c40\u4e86\u3002<\/p>\n<p><strong>2\u3001\u6211\u7a0b\u5e8f\u5173\u95ed\u65f6\uff0c\u662f\u5426\u9700\u8981\u5173\u5fc3\u5185\u5b58\u6cc4\u9732\uff1f<\/strong><\/p>\n<p>\u5b9e\u9645\u4e0a\uff0c\u5728\u73b0\u4ee3\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u4e4b\u95f4\u662f\u76f8\u4e92\u9694\u79bb\u7684\u3002\u6240\u4ee5\uff0c\u4f60\u7a0b\u5e8f\u4e00\u65e6\u9000\u51fa\u6216\u6b7b\u6389\uff0c\u5b83\u6240\u5360\u7528\u7684\u5185\u5b58\u548c\u8d44\u6e90\u5c31\u4f1a\u88ab\u64cd\u4f5c\u7cfb\u7edf\u7ed9\u6536\u56de\u3002\u6240\u4ee5\uff0c\u7a0b\u5e8f\u5173\u95ed\u65f6\uff0c\u7406\u8bba\u4e0a\u5982\u679c\u4f60\u6ca1\u6709\u4e00\u4e9b\u6b63\u5728\u8fdb\u884c\u7684IO\u64cd\u4f5c\uff0c\u4f60\u53ef\u4ee5\u7528TerminateProcess \u4e3a\u7c7b\u7684\u51fd\u6570\u5f3a\u884c\u4e2d\u6b62\uff0c\u4f46\u5b89\u5168\u70b9\u8fd8\u662f\u8981\u901a\u8fc7\u6b63\u5e38\u7684\u9014\u5f84\u91ca\u653e\u5b83\u4eec\u3002<\/p>\n<p>\u5c31\u8c61\u524d\u9762\u8bf4\u4e86\uff0c\u5185\u5b58\u6cc4\u9732\u7684\u6838\u5fc3\u70b9\u5728\u4e8e\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u5360\u7740\u8305\u5751\u4e0d\u62c9\u5c4e\uff0c\u522b\u4eba\u53ea\u80fd\u5f3a\u618b\u7740\u3002\u4f46\u6211\u4eec\u8bd5\u56fe\u68c0\u6d4b\u5185\u5b58\u6cc4\u9732\u65f6\uff0c\u5982\u679c\u5728\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u5f88\u96be\u5224\u5b9a\u4e00\u5757\u5185\u5b58\u662f\u5426\u4e0d\u5728\u4f7f\u7528\u4e86\uff08JAVA\u7b49\u89e3\u91ca\u578b\u8bed\u8a00\u9664\u5916\uff0c\u5b83\u4eec\u53ef\u4ee5\u901a\u8fc7\u5f15\u7528\u8ba1\u6570\u7b49\u65b9\u5f0f\u6765\u81ea\u52a8\u7ba1\u7406\uff09\uff0c\u6240\u4ee5\u5927\u5bb6\u770b\u5230\u7684\u62a5\u544a\u5de5\u5177\u90fd\u662f\u5728\u7a0b\u5e8f\u9000\u51fa\u65f6\uff0c\u6765\u68c0\u67e5\u8c01\u6ca1\u6709\u88ab\u91ca\u653e\u3002<\/p>\n<p><strong>3\u3001\u5185\u5b58\u6cc4\u9732\u4e0d\u662f\u75c5\uff0c\u53d1\u4f5c\u8d77\u6765\u771f\u8981\u547d<\/strong><\/p>\n<p>\u5185\u5b58\u6cc4\u9732\u7684\u95ee\u9898\uff0c\u5b83\u7684\u4e25\u91cd\u6027\u5728\u4e8e\u5f71\u54cd\u7a0b\u5e8f\u7684\u957f\u65f6\u95f4\u8fd0\u884c\uff0c\u800c\u4e14\u7531\u4e8e\u9020\u6210\u7cfb\u7edf\u7684\u53ef\u7528\u5185\u5b58\u8d8a\u6765\u8d8a\u5c0f\uff0c\u5f71\u54cd\u6574\u4e2a\u7cfb\u7edf\u7684\u6d41\u7545\u5ea6\u3002\u4e25\u91cd\u70b9\u7684\u8bdd\uff0c\u4f1a\u88ab\u64cd\u4f5c\u7cfb\u7edf\u76f4\u63a5\u9769\u6389\u5c0f\u547d\u3002\u6240\u4ee5\uff0c\u6211\u4eec\u5728\u5b9e\u9645\u7f16\u7801\u65f6\uff0c\u8981\u5c3d\u91cf\u505a\u5230\u7528\u5b8c\u5c31\u91ca\u653e\uff0c\u517b\u6210\u826f\u597d\u7684\u7f16\u7801\u4e60\u60ef\uff0c\u5426\u5219~~~~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u4ec0\u4e48\u662f\u5185\u5b58\u6cc4\u9732\uff0c\u5185\u5b58\u6cc4\u9732\u6709\u4ec0\u4e48\u5371\u5bb3\uff1f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,21],"tags":[284,265],"class_list":["post-3008","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-misc","tag-284","tag-265"],"views":3412,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3008"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3008\/revisions"}],"predecessor-version":[{"id":3009,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3008\/revisions\/3009"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}