{"id":714,"date":"2014-09-26T21:31:36","date_gmt":"2014-09-26T13:31:36","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=714"},"modified":"2014-09-26T21:34:54","modified_gmt":"2014-09-26T13:34:54","slug":"accessvolation%e9%94%99%e8%af%af%e7%9a%84%e5%b8%b8%e8%a7%81%e8%b0%83%e8%af%95%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=714","title":{"rendered":"AccessViolation\u9519\u8bef\u8c03\u8bd5\u603b\u7ed3"},"content":{"rendered":"<h4>\u3010\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u53ca\u4f5c\u8005\uff0c\u6587\u7ae0\u53d1\u73b0\u95ee\u9898\u4f1a\u968f\u65f6\u66f4\u65b0\uff0c\u8981\u4fdd\u8bc1\u6d4f\u89c8\u6700\u65b0\u7248\u672c\uff0c\u8bf7\u8bbf\u95ee\u5b98\u7f51:blog.qdac.cc\u3011<\/h4>\n<p>Access Violation\u9519\u8bef\u662f\u73b0\u4ee3\u8ba1\u7b97\u673a\u7f16\u7a0b\u4e2d\u5e38\u89c1\u7684\u4e00\u79cd\u9519\u8bef\uff0c\u6211\u5728\u8fd9\u91cc\u5c06\u81ea\u5df1\u8c03\u8bd5\u7684\u7ecf\u9a8c\u505a\u4e2a\u7b80\u5355\u7684\u603b\u7ed3\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003\u3002<\/p>\n<h4>1\u3001\u4ec0\u4e48\u60c5\u51b5\u4e0b\u53d1\u751fAccess Violation\uff08\u8bbf\u95ee\u8fdd\u4f8b\uff0c\u7b80\u79f0AV\u9519\u8bef\uff09\u9519\u8bef\uff1f<\/h4>\n<p>Access Violation\u9519\u8bef\u662f\u4f60\u7684\u4ee3\u7801\u662f\u8bbf\u95ee\u4e00\u4e2a\u65e0\u6548\u7684\u5730\u5740\u7684\u5185\u5bb9\u65f6\u51fa\u73b0\u7684\u3002\u6839\u636e\u4f60\u7684\u64cd\u4f5c\uff0c\u63d0\u793a\u53ef\u80fd\u662f\uff1a<\/p>\n<p>Access violation at address XXXX\uff0cread address YYYY<\/p>\n<p>\u6216<\/p>\n<p>Access violation at address XXXX,write address YYYY<\/p>\n<p>\u524d\u8005\u8bf4\u660e\u4f60\u7684\u8bfb\u53d6\u4e00\u4e2a\u65e0\u6548\u7684\u5730\u5740\uff0c\u540e\u8005\u8bbf\u95ee\u4f60\u5728\u5199\u4e00\u4e2a\u65e0\u6548\u7684\u5730\u5740\u3002<\/p>\n<h4>2\u3001\u4ec0\u4e48\u6837\u7684\u5730\u5740\u662f\u65e0\u6548\u7684\uff1f<\/h4>\n<p>\uff081\uff09\u3001\u5df2\u7ecf\u88ab\u91ca\u653e\u7684\u5730\u5740\u3002<\/p>\n<p>\uff082\uff09\u3001\u672a\u5206\u914d\u7684\u5730\u5740\u3002<\/p>\n<p>\uff083\uff09\u3001\u8d8a\u754c\u7684\u5730\u5740\u3002<\/p>\n<p>\uff084\uff09\u3001\u8bd5\u56fe\u5728\u53ea\u8bfb\u7684\u5185\u5b58\u5757\u4e2d\u5199\u5165\u6570\u636e\u3002<\/p>\n<h4>3\u3001\u8bbf\u95ee\u65e0\u6548\u5730\u5740\u4e00\u5b9a\u4f1a\u51fa\u73b0AV\u9519\u8bef\u5417\uff1f<\/h4>\n<p>\u4e0d\u4e00\u5b9a\u3002\u8fd9\u6709\u51e0\u79cd\u60c5\u51b5\uff1a<\/p>\n<p>\uff081\uff09\u3001\u4f60\u6240\u91ca\u653e\u7684\u5185\u5b58\u5e76\u6ca1\u6709\u88ab\u8fd4\u56de\u7ed9\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4ecd\u88ab\u4f60\u8fdb\u7a0b\u7f13\u5b58\uff0c\u6b64\u65f6\u5f53\u7136\u4e5f\u5c31\u4e0d\u4f1a\u51fa\u73b0AV\u9519\u8bef\u3002<\/p>\n<p>\uff082\uff09\u3001\u4f60\u6240\u8bbf\u95ee\u7684\u5185\u5b58\u8d8a\u754c\u540e\u7684\u5730\u5740\u4f4d\u4e8e\u4f60\u8fdb\u7a0b\u6240\u5c5e\u7684\u5176\u5b83\u5bf9\u8c61\u7684\u5185\u5b58\u5757\u4e0a\uff0c\u8fd9\u79cd\u4e0d\u4f1a\u51fa\u73b0AV\u9519\u8bef\uff0c\u4f46\u540e\u679c\u53ef\u80fd\u66f4\u4e25\u91cd\u3002<\/p>\n<p>\uff083\uff09\u3001\u4f60\u6240\u4f7f\u7528\u7684\u51fd\u6570\u6ca1\u6709\u5bf9\u5f53\u524d\u5185\u5b58\u5730\u5740\u8fdb\u884c\u4efb\u4f55\u8bfb\u5199\u64cd\u4f5c\uff0c\u5f53\u7136\u4e5f\u5c31\u4e0d\u4f1a\u89e6\u53d1AV\u9519\u8bef\u3002<\/p>\n<h4>4\u3001\u600e\u4e48\u80fd\u591f\u5feb\u901f\u627e\u5230AV\u9519\u8bef\u7684\u6765\u6e90\uff1f<\/h4>\n<p>\u4e00\u770b\uff1a\u770b\u51fa\u9519\u7684\u5185\u5b58\u5730\u5740\uff0c\u5982\u679c\u662f000000x\u7b49\u5f88\u5c0f\u7684\u503c\uff0c\u90a3\u57fa\u672c\u4e0a\u53ef\u4ee5\u786e\u5b9a\u662f\u4f60\u8bbf\u95ee\u7684\u5bf9\u8c61\u7684\u5730\u5740\u4e3a\u7a7a\uff0c\u68c0\u67e5\u51fa\u73b0\u5f02\u5e38\u7684\u5806\u6808\uff0c\u57fa\u672c\u4e0a\u5f88\u5bb9\u6613\u627e\u5230\u51fa\u9519\u7684\u6e90\u4ee3\u7801\u3002<\/p>\n<p>\u4e8c\u65ad\uff1a\u5728\u8c03\u8bd5\u5668\u4e2d\u8bbe\u7f6e\u65ad\u70b9\uff0c\u5982\u679c\u4e0d\u662f\u6bcf\u6b21\u90fd\u51fa\u73b0\u7684\u65ad\u70b9\uff0c\u53ef\u4ee5\u7528assert\/__assert\u8bbe\u7f6e\u6761\u4ef6\u65ad\u70b9\uff0c\u7136\u540e\u5728\u51fa\u9519\u65f6\uff0c\u770b\u770b\u51fa\u9519\u7684\u5806\u6808\uff0c\u6309\u5806\u6808\u9010\u7ea7\u5f80\u4e0a\u627e\u6e90\u7801\u3002\u5982\u679c\u4e0d\u60f3\u7528assert\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u6761\u4ef6\u65ad\u70b9\uff08\u65b9\u6cd5\uff1a\u5728\u76f8\u5e94\u7684\u884c\u524d\u70b9\u51fb\u6216\u8005\u76f4\u63a5F5\u8bbe\u7f6e\u65ad\u70b9\uff0c\u7136\u540e\u5728\u524d\u9762\u7684\u7ea2\u8272\u6807\u8bb0\u4e0a\u53f3\u51fb\u9009\u62e9Breakpoint Properties\uff09\u3002<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2014\/09\/ConditionBreakPoint.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-715\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2014\/09\/ConditionBreakPoint-300x203.jpg\" alt=\"ConditionBreakPoint\" width=\"300\" height=\"203\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2014\/09\/ConditionBreakPoint-300x203.jpg 300w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2014\/09\/ConditionBreakPoint.jpg 390w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4e09\u8bb0\uff1a\u6709\u65f6\u5019AV\u9519\u8bef\u5f88\u96be\u91cd\u73b0\uff0c\u6211\u4eec\u5c31\u8981\u8bb0\u5f55\u65e5\u5fd7\u3002\u8fd9\u79cd\u65f6\u5019\uff0c\u63a8\u8350\u4f7f\u7528\u4e00\u4e9b\u65e5\u5fd7\u8bb0\u5f55\u5de5\u5177\u6765\u8bb0\u5f55\u51fa\u9519\u65f6\u7684\u5404\u4e2a\u7ebf\u7a0b\u7684\u5806\u6808\u72b6\u6001\uff0c\u8bf4\u4e0d\u5b9a\u5c31\u80fd\u627e\u5230\u95ee\u9898\u7684\u6240\u5728\u3002\u8bb0\u65e5\u5fd7\u65f6\uff0c\u5bf9\u6000\u7591\u5bf9\u8c61\u7684\u6784\u9020\u548c\u6790\u6784\u51fd\u6570\u5206\u522b\u8bb0\u5f55\u65e5\u5fd7\uff0c\u6700\u540e\u901a\u8fc7\u65e5\u5fd7\u8fdb\u4e00\u6b65\u7684\u5206\u6790\uff0c\u6700\u7ec8\u627e\u51fa\u7ed3\u679c\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u53ca\u4f5c\u8005\uff0c\u6587\u7ae0\u53d1\u73b0\u95ee\u9898\u4f1a\u968f [&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":[79,81],"class_list":["post-714","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-misc","tag-access","tag-voilation"],"views":4762,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/714","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=714"}],"version-history":[{"count":4,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/714\/revisions"}],"predecessor-version":[{"id":719,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/714\/revisions\/719"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}