<?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 Re: Ini File KEYS and Respective VALUES Deleted in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424952#M1304792</link>
    <description>&lt;P&gt;True!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A parallel same ini file read/write process was causing it.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 03:10:33 GMT</pubDate>
    <dc:creator>Anthony_L</dc:creator>
    <dc:date>2025-02-19T03:10:33Z</dc:date>
    <item>
      <title>Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424736#M1304719</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use LabVIEW ini file read/write functions at various places.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I have this [Main] section where most things get written-to and read-from.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;At some point, however, a bunch of KEYS and their respective VALUES get mysteriously WIPED OUT (DELETED).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I have hunted for a process that does this to no avail.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Does anyone know how this can happen?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;When this happens other Keys remain. The truncation happens from a specific Key downwards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 05:50:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424736#M1304719</guid>
      <dc:creator>Anthony_L</dc:creator>
      <dc:date>2025-02-18T05:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424750#M1304726</link>
      <description>&lt;P&gt;Hi Anthony,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/60698"&gt;@Anthony_L&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When this happens other Keys remain. The truncation happens from a specific Key downwards.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is this "specific" key?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you replicate the behaviour with a small test VI?&lt;/P&gt;
&lt;P&gt;Are there additional comment lines in your INI file? (Lines with semicolon at the start…)&lt;/P&gt;
&lt;P&gt;Are there non-ASCII chars in the INI file? (ASCII is defined as 7-bit values from 0x00 to 0x7F!)&lt;/P&gt;
&lt;P&gt;Any non-readable chars other than "usual" (TAB, LF, CR, Space)?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:07:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424750#M1304726</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2025-02-18T07:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424759#M1304727</link>
      <description>&lt;P&gt;Without seeing any code we can only speculate, but from your description:&lt;/P&gt;
&lt;P&gt;You read the file in many places, maybe remember in a control (bad design) or shift register (then, why have several). You then add and write back from several places, each overwriting the previous change thus "removing" keys.&lt;/P&gt;
&lt;P&gt;Sound about right?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 08:13:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424759#M1304727</guid>
      <dc:creator>Yamaeda</dc:creator>
      <dc:date>2025-02-18T08:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424768#M1304732</link>
      <description>&lt;P&gt;Hello Gerd:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking time to look at my issue. I am at the beggining stages of troubleshooting this issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;what happens is as if when a certain set of keys is written, it reSETS the file to have only those keys.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;All keys have simple ASCII strings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I am wondering about the TRUE default boolean on this INI CLOSE File VI.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;will that RESET things?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I will continue troubleshooting and will report back further findings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 08:48:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424768#M1304732</guid>
      <dc:creator>Anthony_L</dc:creator>
      <dc:date>2025-02-18T08:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424772#M1304735</link>
      <description>&lt;P&gt;Thank you Yamaeda:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For taking time to review my issue.&amp;nbsp;&lt;SPAN&gt;For example: Does it mean that if I have 15-keys,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then if one process writes 5 keys does it mean that 10 keys will be deleted? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am wondering if this is what us happening.’&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for example what does boolean true do here?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 08:56:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424772#M1304735</guid>
      <dc:creator>Anthony_L</dc:creator>
      <dc:date>2025-02-18T08:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424774#M1304737</link>
      <description>&lt;P&gt;Hi Anthony,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/60698"&gt;@Anthony_L&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For taking time to review my issue.&amp;nbsp;&lt;SPAN&gt;For example: Does it mean that if I have 15-keys,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then if one process writes 5 keys does it mean that 10 keys will be deleted? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am wondering if this is what us happening.’&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The INI file functions internally buffer the keys. So you should not open the same INI file more than once in your app otherwise you create a race condition!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/60698"&gt;@Anthony_L&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;for example what does boolean true do here?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It will do what the help says: write the INI file when a key has changed…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need to create two messages to answer. And you don't need to attach the same image twice…&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 09:05:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424774#M1304737</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2025-02-18T09:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424907#M1304782</link>
      <description>&lt;P&gt;Have you accidentally used the "Remove Section" VI?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aputman_0-1739908923965.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/26bcd2541a4ee1a42cb4eb7f41028247a1a62d60/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33343431383569413445373735363339344531334537322f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="aputman_0-1739908923965.png" alt="aputman_0-1739908923965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 20:02:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424907#M1304782</guid>
      <dc:creator>aputman</dc:creator>
      <dc:date>2025-02-18T20:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424927#M1304786</link>
      <description>&lt;P&gt;The reference wire for a .ini file isn't a real reference.&amp;nbsp; It actually contains the contents of the file.&lt;/P&gt;
&lt;P&gt;If you have forked that wire, that would account for the behavior.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 21:43:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424927#M1304786</guid>
      <dc:creator>paul_a_cardinale</dc:creator>
      <dc:date>2025-02-18T21:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424951#M1304791</link>
      <description>&lt;P&gt;No I did not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like it was caused by a race condition as Gerd pointed out.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 03:09:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424951#M1304791</guid>
      <dc:creator>Anthony_L</dc:creator>
      <dc:date>2025-02-19T03:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424952#M1304792</link>
      <description>&lt;P&gt;True!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A parallel same ini file read/write process was causing it.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 03:10:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424952#M1304792</guid>
      <dc:creator>Anthony_L</dc:creator>
      <dc:date>2025-02-19T03:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ini File KEYS and Respective VALUES Deleted</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424953#M1304793</link>
      <description>&lt;P&gt;Yes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, I disabled a parallel same ini file rd/wr process and stability returned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks GerdW&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 03:12:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Ini-File-KEYS-and-Respective-VALUES-Deleted/m-p/4424953#M1304793</guid>
      <dc:creator>Anthony_L</dc:creator>
      <dc:date>2025-02-19T03:12:13Z</dc:date>
    </item>
  </channel>
</rss>

