<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Element Collections Example</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91e0d63e04/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91e0d63e04/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/91e0d63e04/</id><updated>2020-12-09T17:02:32.430000Z</updated><subtitle>Recent posts to Element Collections Example</subtitle><entry><title>Element Collections Example</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91e0d63e04/?limit=25#965a" rel="alternate"/><published>2020-12-09T17:02:32.430000Z</published><updated>2020-12-09T17:02:32.430000Z</updated><author><name>stmos</name><uri>https://forge.codesys.com/u/stmos/</uri></author><id>https://forge.codesys.comba65f51daa44fbfdf4e25530d534bff5f34dface</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Same question here...&lt;/p&gt;
&lt;p&gt;From my tests it seems also that if I try to fill the queue it gives the "Max size exceeded" error with the exact size of the array.&lt;/p&gt;
&lt;p&gt;So it seems that there is no need to have an underlying array 2 times the max size, but I'm concerned with possible memory overflows...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Element Collections Example</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91e0d63e04/?limit=25#843c" rel="alternate"/><published>2020-11-17T15:00:03.739000Z</published><updated>2020-11-17T15:00:03.739000Z</updated><author><name>andras-mozes</name><uri>https://forge.codesys.com/u/andras-mozes/</uri></author><id>https://forge.codesys.com0254bfc3157ffe85cfd5a044d8466690b648c377</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;Hello&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;in the &lt;em&gt;SimpleQueueExample&lt;/em&gt; there is the following &lt;em&gt;NOTEs&lt;/em&gt;.&lt;br/&gt;
&lt;code&gt;aElements : ARRAY[0..9] OF COL.IElement; // Create an array of IElements for a static queue. NOTE: The size must be 2 times larger than the maximum number of used elements.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;queue : COL.Queue := (paElements := ADR(aElements), udiMaxElements := 10); // Created a static queue. NOTE: Static created elements of this queue will be online change safe.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;What does &lt;code&gt;The size must be 2 times larger than the maximum number of used elements.&lt;/code&gt; exactly mean?&lt;/p&gt;
&lt;p&gt;Is it true?&lt;/p&gt;
&lt;p&gt;Thanks for the help in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>