<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Excel file - loop crashout - c++]]></title><description><![CDATA[<p dir="auto">Hey, I've got an unusual one today. I am trying to iterate through a list of cities in excel. have been using the LibXL library without any issues thus far. However for some reason if I want to iterate through 2824 rows everything crashes out. The code works for an iteration of 200 but not more. doesn't really matter which 200 indexes in between 1 and 2825, just always crashes out.<br />
It's a simple loop, nothing much. I thought that maybe the fact that I'm using readStr() makes it consume way more memory so I simplified it just to read it and not store it. same thing. At first I tried a manual way of catching a match (strcmp()) but even if I use an unordered map it doesn't work.<br />
Please help :)</p>
<pre><code>    Book* book = xlCreateBook();
    book-&gt;load("file.xls");
    book-&gt;setLocale("UTF-8");
    Sheet* sheet = book-&gt;getSheet(0);
    unordered_map&lt;string, string&gt; mp;
    for(int i = 1; i &lt; 2826; i++) {
        mp.insert({std::string(sheet-&gt;readStr(i, 6)), std::string(sheet-&gt;readStr(i, 3))});
    }
</code></pre>
]]></description><link>https://forum.qt.io/topic/165005/excel-file-loop-crashout-c</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 03:56:09 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165005.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Aug 2026 21:40:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Excel file - loop crashout - c++ on Fri, 04 Sep 2026 05:36:00 GMT]]></title><description><![CDATA[<p dir="auto">sheet readStr gives you null as there is<br />
somewhere no valid data, print index where it crash</p>
]]></description><link>https://forum.qt.io/post/839975</link><guid isPermaLink="true">https://forum.qt.io/post/839975</guid><dc:creator><![CDATA[sales99]]></dc:creator><pubDate>Fri, 04 Sep 2026 05:36:00 GMT</pubDate></item><item><title><![CDATA[Reply to Excel file - loop crashout - c++ on Thu, 13 Aug 2026 05:31:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jakubd">@<bdi>jakubd</bdi></a> How is this related to Qt?<br />
Did you debug to see where it crashes?<br />
What type of crash is that?<br />
Run in debugger and provide more information to answer above questions.</p>
]]></description><link>https://forum.qt.io/post/839692</link><guid isPermaLink="true">https://forum.qt.io/post/839692</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 13 Aug 2026 05:31:36 GMT</pubDate></item></channel></rss>