{"id":4783,"date":"2017-12-17T13:26:07","date_gmt":"2017-12-17T05:26:07","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=4783"},"modified":"2017-12-17T14:02:30","modified_gmt":"2017-12-17T06:02:30","slug":"%e9%9d%9e%e5%ae%98%e6%96%b9%e8%a1%a5%e4%b8%81rsp-19552-10-2-2-%e7%9a%84-android-%e7%a8%8b%e5%ba%8f%e5%9c%a8%e9%80%80%e5%87%ba%e6%97%b6%e5%87%ba%e9%94%99%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=4783","title":{"rendered":"[\u975e\u5b98\u65b9\u8865\u4e01]RSP-19552 10.2.2 \u7684 Android \u7a0b\u5e8f\u5728\u9000\u51fa\u65f6\u51fa\u9519\u7684\u95ee\u9898\u975e\u5b98\u65b9\u8865\u4e01"},"content":{"rendered":"<p><a href=\"https:\/\/quality.embarcadero.com\/browse\/RSP-19552\">\u8bbf\u95ee\u5b98\u65b9QC\u5730\u5740<\/a><\/p>\n<p>\u95ee\u9898\u539f\u56e0\uff1a\u8be5\u95ee\u9898\u662f\u7531\u4e8e\u7a0b\u5e8f\u9000\u51fa\u65f6\uff0cFSharedContext \u88ab\u91ca\u653e\uff0c\u800c\u00a0DoFinalizeShader \u8c03\u7528 Valid \u6ca1\u6709\u505a\u76f8\u5e94\u7684\u5904\u7406\uff0c\u7ed3\u679c\u5728\u68c0\u67e5\u5230 FSharedContext \u4e3a\u7a7a\u65f6\uff0c\u53c8\u91cd\u65b0\u521b\u5efa\u4e86 FSharedContext \u9020\u6210\u7684\u3002<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a\u5728 Valid -&gt;ActivateSharedContext-&gt;CreateSharedContext \u8fd9\u4e09\u4e2a\u51fd\u6570\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\uff0c\u52a0\u5165\u5bf9\u7a0b\u5e8f\u6b63\u5728\u9000\u51fa\u72b6\u6001\u7684\u68c0\u67e5\u5373\u53ef\u3002\u6bd4\u5982\u6211\u4eec\u52a0\u5230 CreateSharedContext \u91cc\uff0c\u5728 FMX.Context.GLES.Android \u5355\u5143\uff0c\u627e\u5230 CreateSharedContext \u51fd\u6570\uff0c\u7136\u540e\u5728\u5f00\u59cb\u7684\u5730\u65b9\u4fee\u6539\u4e3a\u4e0b\u9762\u7684\u4ee3\u7801\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">var\r\n  AppTerminating:Boolean=false;\r\nclass procedure TCustomAndroidContext.CreateSharedContext;\r\nvar\r\n  ASvc:IFMXApplicationService;\r\nbegin\r\n  if AppTerminating or (TPlatformServices.Current.SupportsPlatformService(IFMXApplicationService,ASvc) and ASvc.Terminating) then\r\n    begin\r\n    AppTerminating:=true;\r\n    Exit;\r\n    end;\r\n  ...\u5176\u5b83\u539f\u6765\u7684\u4ee3\u7801\u4e0d\u53d8<\/pre>\n<p>\u8fd9\u6837\u901a\u8fc7\u68c0\u67e5\u662f\u5426\u6b63\u5728\u9000\u51fa\u7a0b\u5e8f\uff0c\u5982\u679c\u9000\u51fa\u4e2d\uff0c\u5c31\u4e0d\u518d\u91cd\u65b0\u521b\u5efa FSharedContext \u5b9e\u4f8b\uff0c\u5c31\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bbf\u95ee\u5b98\u65b9QC\u5730\u5740 \u95ee\u9898\u539f\u56e0\uff1a\u8be5\u95ee\u9898\u662f\u7531\u4e8e [&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":[603],"tags":[],"class_list":["post-4783","post","type-post","status-publish","format-standard","hentry","category-603"],"views":3223,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4783","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=4783"}],"version-history":[{"count":3,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4783\/revisions"}],"predecessor-version":[{"id":4786,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4783\/revisions\/4786"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}