<?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 Labview crashes on Queue in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571375#M999727</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;I use a queue to transport data between different VI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;My problem: Labview crashes sometimes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Have created a TestVI. -&amp;gt; The counter stops at 2 ^ 10!! -&amp;gt; No Message , nothing -&amp;gt; Crash&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;I am happy about every Idea.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Thanks Daniel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 19:13:34 GMT</pubDate>
    <dc:creator>DanielMald</dc:creator>
    <dc:date>2017-01-18T19:13:34Z</dc:date>
    <item>
      <title>Labview crashes on Queue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571375#M999727</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;I use a queue to transport data between different VI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;My problem: Labview crashes sometimes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Have created a TestVI. -&amp;gt; The counter stops at 2 ^ 10!! -&amp;gt; No Message , nothing -&amp;gt; Crash&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;I am happy about every Idea.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Thanks Daniel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:13:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571375#M999727</guid>
      <dc:creator>DanielMald</dc:creator>
      <dc:date>2017-01-18T19:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Labview crashes on Queue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571377#M999728</link>
      <description>&lt;P&gt;Does it crash with an "out of memory" message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, move the Get Queue ref to the outside of the loop so that you are not creating a ref to the queue a zillion times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:12:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571377#M999728</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2017-01-18T19:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Labview crashes on Queue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571385#M999729</link>
      <description>&lt;P&gt;Thanks Ben&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Idea is to generate the Queue Ref if i need it.&lt;BR /&gt;The App run 3-4 Months nonstop!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I never read a Guideline: you can't search the Queue Ref more than 2^10 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:24:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571385#M999729</guid>
      <dc:creator>DanielMald</dc:creator>
      <dc:date>2017-01-18T19:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Labview crashes on Queue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571386#M999730</link>
      <description>&lt;P&gt;Then use a Singleton approach and only get a ref if it does not exist. Otherwise use the one you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Closing the queue ref may also help a bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:22:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571386#M999730</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2017-01-18T19:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Labview crashes on Queue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571400#M999738</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Daniel1978 wrote: &lt;BR /&gt;
&lt;P&gt;I never read a Guideline: you can't search the Queue Ref more than 2^10 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is more of proper handling of references in general.&lt;/P&gt;
&lt;P&gt;1. If you open a reference, close it.&lt;/P&gt;
&lt;P&gt;2. There is a limit on how many references you can have since a reference it really just an I32.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sticks in my mind that the number of queue references was limited by something other than the I32 type.&amp;nbsp; I would have to do some major digging to find that tibit again.&amp;nbsp; So my guess is that you are just running into that limit.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:59:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571400#M999738</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2017-01-18T19:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Labview crashes on Queue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571409#M999742</link>
      <description>&lt;P&gt;Just ran your VI in LabVIEW 2016.&amp;nbsp; The queue reads actually got up to 2^20 and it just caused the program to freeze.&amp;nbsp; After killing LabVIEW and restarting it, I just added a Release Queue after the Preview Queue and it is running way past that limit (almost 100M iterations).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the lesson learned here:&lt;/P&gt;
&lt;P&gt;1. Close your references.&lt;/P&gt;
&lt;P&gt;2. It is best not to re-open references if you can help it.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:07:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571409#M999742</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2017-01-18T20:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Labview crashes on Queue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571426#M999751</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/75897"&gt;@crossrulz&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Just ran your VI in LabVIEW 2016.&amp;nbsp; The queue reads actually got up to 2^20 and it just caused the program to freeze.&amp;nbsp; After killing LabVIEW and restarting it, I just added a Release Queue after the Preview Queue and it is running way past that limit (almost 100M iterations).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the lesson learned here:&lt;/P&gt;
&lt;P&gt;1. Close your references.&lt;/P&gt;
&lt;P&gt;2. It is best not to re-open references if you can help it.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hit Ctrl+I&lt;/P&gt;
&lt;P&gt;That test vi was sourced in LabVIEW 8.6 &amp;nbsp;If I'm not thoroughly mistaken Queues were reworked for LabVIEW 2009. &amp;nbsp;so comparisions running on modern versions don't really mean much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I totally agree that the references are completely mishandled. &amp;nbsp;However, the ref to the named queue should return a ref to the named queue (Test for equality to prove its a ref to the same object, cast to int to prove its the same referance to that object) &amp;nbsp;That "Might" have changed between Pre 8.6 &amp;nbsp;and post 2009. &amp;nbsp;It has been several years since I've had 8.6 to play with. &amp;nbsp;(Oh, I have media I just have no machine with that old a version installed) &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:36:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571426#M999751</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2017-01-18T20:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Labview crashes on Queue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571432#M999754</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/123634"&gt;@JÞB&lt;/a&gt; wrote:&lt;BR /&gt; That test vi was sourced in LabVIEW 8.6 &amp;nbsp;If I'm not thoroughly mistaken Queues were reworked for LabVIEW 2009. &amp;nbsp;so comparisions running on modern versions don't really mean much.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;The other VI the OP supplied was written in 2015.&amp;nbsp; Yes, I looked at the version before doing anything.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:40:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-crashes-on-Queue/m-p/3571432#M999754</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2017-01-18T20:40:13Z</dc:date>
    </item>
  </channel>
</rss>

