<?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 Bad allocation exception in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/bad-allocation-exception/m-p/259839#M1687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using ArcGis runtime.net 2.6 in our c# application (WPF, .net 4.5.2). The application is running mainly unattended for testing/demo purposes and updating some visuals on a map (circles, lines) on a regular base (e.g. redraw every 2-5 seconds) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We had app crashes coming from the arcgis runtime with the following stacktrace. Somthing internally in arcgis.net is throwing it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2016-04-19 01:17:16,154 [SvThread] ERROR [(null)] &amp;lt;(null)&amp;gt; - Error in main routine: &lt;/P&gt;&lt;P&gt;exception Details (key=value): (System.Object=) System.Exception: bad allocation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.Interop.HandleException(Boolean retVal)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayer.AddGraphics(ICoreGeometry[] geometries, ICoreSymbol[] symbols, CoreAttributes[] attributes, CoreGraphicSimpleProperties[] properties, Int32&amp;amp; startId, Int32&amp;amp; endId)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayerWrapper.AddGraphicsInternal(AdditionInfo additions, SpatialReference mapSR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayerWrapper.UpdatePendingGraphics()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.Controls.ViewBase.MapBatchProcess()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.Controls.ViewBase._batchUpdateTimer_Tick(Object sender, Object e)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is: what happens here? What does "bad allocation" mean? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very hard for me to tell what happens as it is so random - and obviously asyncronous, not directly triggered by code from us. How can I narrow down the root cause?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 09:08:32 GMT</pubDate>
    <dc:creator>AndreasBaier</dc:creator>
    <dc:date>2016-04-27T09:08:32Z</dc:date>
    <item>
      <title>Bad allocation exception</title>
      <link>https://community.esri.com/t5/developers-questions/bad-allocation-exception/m-p/259839#M1687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using ArcGis runtime.net 2.6 in our c# application (WPF, .net 4.5.2). The application is running mainly unattended for testing/demo purposes and updating some visuals on a map (circles, lines) on a regular base (e.g. redraw every 2-5 seconds) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We had app crashes coming from the arcgis runtime with the following stacktrace. Somthing internally in arcgis.net is throwing it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2016-04-19 01:17:16,154 [SvThread] ERROR [(null)] &amp;lt;(null)&amp;gt; - Error in main routine: &lt;/P&gt;&lt;P&gt;exception Details (key=value): (System.Object=) System.Exception: bad allocation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.Interop.HandleException(Boolean retVal)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayer.AddGraphics(ICoreGeometry[] geometries, ICoreSymbol[] symbols, CoreAttributes[] attributes, CoreGraphicSimpleProperties[] properties, Int32&amp;amp; startId, Int32&amp;amp; endId)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayerWrapper.AddGraphicsInternal(AdditionInfo additions, SpatialReference mapSR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayerWrapper.UpdatePendingGraphics()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.Controls.ViewBase.MapBatchProcess()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.Controls.ViewBase._batchUpdateTimer_Tick(Object sender, Object e)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is: what happens here? What does "bad allocation" mean? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very hard for me to tell what happens as it is so random - and obviously asyncronous, not directly triggered by code from us. How can I narrow down the root cause?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 09:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/bad-allocation-exception/m-p/259839#M1687</guid>
      <dc:creator>AndreasBaier</dc:creator>
      <dc:date>2016-04-27T09:08:32Z</dc:date>
    </item>
  </channel>
</rss>

