<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Finding Initialized or Uninitialised static data in a DLL - Comments</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html</link>
 <description>Comments for &quot;Finding Initialized or Uninitialised static data in a DLL&quot;</description>
 <language>en</language>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1805</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;To use the .BAT file in Carbide-c++:
&lt;br /&gt;&lt;img class=&#039;spip_puce&#039; src=&#039;http://www.newlc.com/sites/all/themes/zen/images/blue_bullet.gif&#039; alt=&#039;-&#039; /&gt;&amp;nbsp;&amp;nbsp;duplicate the folder named &quot;UIQ 2.1 Phone (ARMI) Release&quot; (or similar) of your Carbide project to a name WITHOUT SPACES (e.g. &quot;ARMISOURCES&quot;)
&lt;br /&gt;&lt;img class=&#039;spip_puce&#039; src=&#039;http://www.newlc.com/sites/all/themes/zen/images/blue_bullet.gif&#039; alt=&#039;-&#039; /&gt;&amp;nbsp;&amp;nbsp;then copy NM.EXE from C:\symbian\UIQ_21\epoc32\gcc\rm-epoc-pe\bin to ARMISOURCES\SRC folder
&lt;br /&gt;&lt;img class=&#039;spip_puce&#039; src=&#039;http://www.newlc.com/sites/all/themes/zen/images/blue_bullet.gif&#039; alt=&#039;-&#039; /&gt;&amp;nbsp;&amp;nbsp;save the .BAT file in ARMISOURCES\SRC folder
&lt;br /&gt;&lt;img class=&#039;spip_puce&#039; src=&#039;http://www.newlc.com/sites/all/themes/zen/images/blue_bullet.gif&#039; alt=&#039;-&#039; /&gt;&amp;nbsp;&amp;nbsp;open a DOS box
&lt;br /&gt;&lt;img class=&#039;spip_puce&#039; src=&#039;http://www.newlc.com/sites/all/themes/zen/images/blue_bullet.gif&#039; alt=&#039;-&#039; /&gt;&amp;nbsp;&amp;nbsp;enter ARMYSOURCES\SRC folder
&lt;br /&gt;&lt;img class=&#039;spip_puce&#039; src=&#039;http://www.newlc.com/sites/all/themes/zen/images/blue_bullet.gif&#039; alt=&#039;-&#039; /&gt;&amp;nbsp;&amp;nbsp;run vsvars32.bat batch file from Visual C++ compiler installation (mine is in ....\Common7\Tools\vsvars32.bat )
&lt;br /&gt;&lt;img class=&#039;spip_puce&#039; src=&#039;http://www.newlc.com/sites/all/themes/zen/images/blue_bullet.gif&#039; alt=&#039;-&#039; /&gt;&amp;nbsp;&amp;nbsp;finally, run the .BAT file.&lt;/div&gt;</description>
 <pubDate>Mon, 05 Feb 2007 20:59:35 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 1805 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1810</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Interestingly enough, the &lt;i&gt;find_statics.bat&lt;/i&gt; will actually find more instances of initialized data than the method mentioned in the article (looking for the bss section), as there are some cases where initialized data doesn&#039;t create a bss section.&lt;/div&gt;</description>
 <pubDate>Fri, 13 Oct 2006 22:37:36 +0200</pubDate>
 <dc:creator>euroq</dc:creator>
 <guid isPermaLink="false">comment 1810 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1809</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;THANK you, 
this tool helped me fix my problem within seconds, and it didn&#039;t require me to fully understand the why. That&#039;s really helpful.&lt;/div&gt;</description>
 <pubDate>Fri, 26 May 2006 18:33:25 +0200</pubDate>
 <dc:creator>Felix</dc:creator>
 <guid isPermaLink="false">comment 1809 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1808</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Yes, this batch file is much better than the method proposed by the orignal post. I tried both and this one helped me to find my problem. And it is much faster.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Thanks
Ray&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 08 May 2006 17:12:14 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 1808 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1804</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;how can i add this option under carbide 
thanks&lt;/div&gt;</description>
 <pubDate>Fri, 21 Apr 2006 13:09:16 +0200</pubDate>
 <dc:creator>amine</dc:creator>
 <guid isPermaLink="false">comment 1804 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1801</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;There is a simpler method to find the problematic variables (using &quot;nm&quot; utility provided with GCC). I created a simple batch file to find the modifiable statics:&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;&lt;i class=&quot;spip&quot;&gt;rem ------ start of find_statics.bat ------&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;@echo off&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;for /R %%f in (*.o) do ( echo %%f &amp; nm %%f &gt; tmp.txt &amp; find /I &quot; d &quot; &amp;lt; tmp.txt &amp; find /I &quot; b &quot; &lt; tmp.txt &amp; find /I &quot; g &quot; &lt; tmp.txt )&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;del /f tmp.txt 2&amp;gt; NULL:&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;rem ------ end of find_statics.bat ------&lt;/i&gt;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;(Please note that it uses MSWin2K/XP CMD.EXE with Command Extensions enabled. And, of course, it is possible to write much more elegant script using UNIXish utilities :-).&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Well, just copy the lines above to, say, find_statics.bat, go to BUILD directory of you application/DLL, and run the batch, e.g.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;&lt;i class=&quot;spip&quot;&gt;c:\&gt; cd c:\Symbian\7.0s\Series60_v21\Epoc32\BUILD\MY_APP\GROUP&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;c:\Symbian\7.0s\Series60_v21\Epoc32\BUILD\MY_APP\GROUP&gt; find_statics.bat&lt;/i&gt;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;The result will be something like:&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;&lt;i class=&quot;spip&quot;&gt;c:\Symbian\7.0s\Series60_v21\Epoc32\BUILD\MY_APP\GROUP\MY_APP\THUMB\UREL\GOOD1.o&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;c:\Symbian\7.0s\Series60_v21\Epoc32\BUILD\MY_APP\GROUP\MY_APP\THUMB\UREL\BAD.o&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;00000008 d PROBLEMATIC_VARIABLE1&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;00000004 d PROBLEM_VAR2&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;c:\Symbian\7.0s\Series60_v21\Epoc32\BUILD\MY_APP\GROUP\MY_APP\THUMB\UREL\GOOD2.o&lt;/i&gt;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Good luck!&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 11 Aug 2005 18:51:56 +0200</pubDate>
 <dc:creator>Anatoly kardash</dc:creator>
 <guid isPermaLink="false">comment 1801 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1800</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi, thanks for the article!&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I used this method with Metrowerks CodeWarrior: In Targets, selected settings for ARMI UDEB and added &quot;-save-temps&quot; to Code Generation / Symbian Compiler / Arguments.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;The .s-files were generated to epoc32\gcc\bin\&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 26 Jul 2005 14:30:10 +0200</pubDate>
 <dc:creator>Asmo Soinio</dc:creator>
 <guid isPermaLink="false">comment 1800 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1803</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Hi, the problem is that your sdk does not support the keyword &quot;OPTION&quot;. As I know, the 6.0 version doesn&#039;t, you can&#039;t find the keyword in it&#039;s sdk ( &amp;#187; Symbian OS v6.1 Edition for C++ &amp;#187; Tools And Utilities &amp;#187; Build Tools Reference &amp;#187; mmp file syntax).&lt;/div&gt;</description>
 <pubDate>Fri, 24 Dec 2004 10:14:47 +0100</pubDate>
 <dc:creator>Lin Ma</dc:creator>
 <guid isPermaLink="false">comment 1803 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1807</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;I did all the testing on the UIQ toolchain as this is my primary developer platform.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Did you run makmake or bldmake and then a full rebuild using abld?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Did you search you harddrive for any of those file types?&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 13 Dec 2004 14:15:20 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 1807 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1799</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Does this method work for the UiQ builds ?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I cannot find any .s or .i file after the builds.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;thanks
Drew&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 12 Dec 2004 23:34:05 +0100</pubDate>
 <dc:creator>Drew Haninger</dc:creator>
 <guid isPermaLink="false">comment 1799 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1806</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;I have the problem, but only in Series60 v1.2, In Series60 v2.0 it works.&lt;/div&gt;</description>
 <pubDate>Thu, 25 Nov 2004 10:56:49 +0100</pubDate>
 <dc:creator>Karsten Meier</dc:creator>
 <guid isPermaLink="false">comment 1806 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1802</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Did you put the option key word in the mmp, and then regenerate the build files using bldmake/makmake?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;What version of symbian are you using?&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 13 Nov 2004 17:18:08 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 1802 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html#comment-1798</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;There is an error when i try to compile.
Unrecognize Keyword &quot;OPTION&quot;.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;How do i resolve this?&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 13 Nov 2004 15:20:11 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 1798 at http://www.newlc.com</guid>
</item>
<item>
 <title>Finding Initialized or Uninitialised static data in a DLL</title>
 <link>http://www.newlc.com/en/Finding-Initialized-or.html</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;The Symbian operating system does not support the use of writable static data in DLL&#039;s. This can be a major problem if your application uses global variables. This article will show you how to find out what is wrong in your code.&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/Finding-Initialized-or.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/Finding-Initialized-or.html#comments</comments>
 <category domain="http://www.newlc.com/en/taxonomy/term/6">Tools &amp;amp; SDK</category>
 <category domain="http://www.newlc.com/en/taxonomy/term/125">Error Management</category>
 <enclosure url="http://www.newlc.com/files/StaticData.zip" length="964" type="application/zip" />
 <pubDate>Tue, 14 Sep 2004 15:36:26 +0200</pubDate>
 <dc:creator>paul</dc:creator>
 <guid isPermaLink="false">414 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
