{"id":16363,"date":"2009-10-15T07:00:00","date_gmt":"2009-10-15T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2009\/10\/15\/dont-use-global-state-to-manage-a-local-problem-practical-exam\/"},"modified":"2009-10-15T07:00:00","modified_gmt":"2009-10-15T07:00:00","slug":"dont-use-global-state-to-manage-a-local-problem-practical-exam","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20091015-00\/?p=16363","title":{"rendered":"Don&#039;t use global state to manage a local problem, practical exam"},"content":{"rendered":"<p>There was much speculation as to <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2008\/07\/30\/8790272.aspx\"> how the &#8220;Ignore other applications that use Dynamic Data Exchange&#8221; setting got set<\/a>. Well, <a href=\"http:\/\/www.belshe.com\/2006\/11\/29\/excel-programming-and-ignoreremoterequests\/\"> one possibility<\/a> is that somebody <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2008\/12\/11\/9193695.aspx\"> used global state to manage a local problem<\/a>.\n &#8220;<a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2008\/07\/30\/8790272.aspx#8792614\">Why on earth does this setting exist?<\/a>&#8221; I don&#8217;t know, but there appear to be scripts which rely on it.\n The setting is exposed to scripts, and perhaps at some point you ran a script which didn&#8217;t want Excel to be interrupted while it was running. The documentation for the <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/aa213696(office.11).aspx\"> Excel Application Object<\/a> does say that it contains application-wide (global) settings.\n <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2007\/02\/14\/1676656.aspx\"> I&#8217;m not saying that&#8217;s why <i>you<\/i> are encountering the problem<\/a>, but it&#8217;s just one possibility I ran across while doing some Web searching to learn more about the setting.<\/p>\n<p> One of those Web searches took me to <a href=\"http:\/\/msmvps.com\/blogs\/bradley\/\"> Susan Bradley (the SBS Diva)<\/a> who gave one reason why somebody would enable this checkbox: <a href=\"http:\/\/msmvps.com\/blogs\/bradley\/archive\/2008\/07\/30\/one-fix-creates-another-problem.aspx\"> It shuts up a different warning<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There was much speculation as to how the &#8220;Ignore other applications that use Dynamic Data Exchange&#8221; setting got set. Well, one possibility is that somebody used global state to manage a local problem. &#8220;Why on earth does this setting exist?&#8221; I don&#8217;t know, but there appear to be scripts which rely on it. The setting [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25,104],"class_list":["post-16363","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>There was much speculation as to how the &#8220;Ignore other applications that use Dynamic Data Exchange&#8221; setting got set. Well, one possibility is that somebody used global state to manage a local problem. &#8220;Why on earth does this setting exist?&#8221; I don&#8217;t know, but there appear to be scripts which rely on it. The setting [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/16363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=16363"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/16363\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=16363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=16363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=16363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}