<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic flexviewer leak in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13299#M516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created my own widget to be used in flexviewer but I get the message "To resolve the leak, define com.esri.ags.geometry.WebMercatorMapPoint in the top-level application." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already saw a recommendation to resolve this issue is to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import com.esri.ags.geometry.MapPoint; in your main mxml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The widget has aleady this import, so in flexviewer the top-level application is considered to be what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2014 22:39:52 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2014-08-27T22:39:52Z</dc:date>
    <item>
      <title>flexviewer leak</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13299#M516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created my own widget to be used in flexviewer but I get the message "To resolve the leak, define com.esri.ags.geometry.WebMercatorMapPoint in the top-level application." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already saw a recommendation to resolve this issue is to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import com.esri.ags.geometry.MapPoint; in your main mxml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The widget has aleady this import, so in flexviewer the top-level application is considered to be what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 22:39:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13299#M516</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-08-27T22:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: flexviewer leak</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13300#M517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is a common warning that widget developers will get in Flash Builder 4.7 (it was never displayed in earlier versions). The only way to get rid of this warning is to add your import that the warning is talking about to the main mxml (which means the index.mxml) thought this is not the best place for this instead add it to the com.esri.viewer.ForcedImports.as file (this is how esri gets around the warning). You will notice in that file you add the import and then just type the object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14092347038151700 jive_text_macro" jivemacro_uid="_14092347038151700" modifiedtitle="true"&gt;
&lt;P&gt;import com.esri.ags.tasks.PrintTask;&lt;/P&gt;
&lt;P&gt;import com.esri.ags.geometry.MapPoint;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;PrintTask;&lt;/P&gt;
&lt;P&gt;MapPoint;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 14:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13300#M517</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-28T14:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: flexviewer leak</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13301#M518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert. My first reaction when I encountered that error was to enter the import in the index.html but it didn't prevent the error. Then, I implemented your suggestions, but I still get the error. I am using Flash Builder 4.6. If I ignore this error,&amp;nbsp; will actually result to serious memory leaks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 23:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13301#M518</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-08-28T23:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: flexviewer leak</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13302#M519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am very surprised that neither of those worked to remove the warning for you. I have used those methods in the past and the warning went away... As far as the reality of the warning. No there is very minimal chance of this becoming a serious issue for your widget. As there are many widgets out there that have these type of warnings and are not encountering a memory leak issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 12:58:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13302#M519</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-29T12:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: flexviewer leak</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13303#M520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I will just ignore the warning and move on. Thank you Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 15:30:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flexviewer-leak/m-p/13303#M520</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-08-29T15:30:57Z</dc:date>
    </item>
  </channel>
</rss>

