<?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 - exe and CBase 69 panic. - Comments</title>
 <link>http://www.newlc.com/topic-3313</link>
 <description>Comments for &quot;exe and CBase 69 panic.&quot;</description>
 <language>en</language>
<item>
 <title>exe and CBase 69 panic.</title>
 <link>http://www.newlc.com/topic-3313#comment-10296</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Is it E32USER-CBase 69?&lt;br /&gt;&lt;br /&gt;Or just CBase 69?&lt;br /&gt;&lt;br /&gt;If its E32USER-CBase 69&lt;br /&gt;&lt;br /&gt;In your E32Main you must do:&lt;br /&gt;&lt;br /&gt;CTrapCleanup* pCleanup = CTrapCleanup::New();&lt;br /&gt;if(pCleanup)&lt;br /&gt;{&lt;br /&gt;TRAPD(err, MainFunctionThatLeavesL());&lt;br /&gt;delete pCleanup;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Otherwise you will get E32USER-CBase 69 when you try and use the Cleanup Stack.&lt;br /&gt;&lt;br /&gt;As for why E32Main() isn&#039;t being called &amp;nbsp;&lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/huh.gif&quot; alt=&quot;Huh&quot; border=&quot;0&quot; /&gt; Hmm. &amp;nbsp;EPOCEXE isn&#039;t anything fancy - all it does is build to a DLL when running on emulator or an EXE on target.&lt;br /&gt;&lt;br /&gt;Of course, your E32Main will not be called if you are trying to run this under an emulator because what you will actually get is a DLL &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt; &amp;nbsp;You will need something like:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;#if defined&amp;#40;__WINS__&amp;#41;&lt;br /&gt;&lt;br /&gt;TInt E32Dll&amp;#40;TDllReason&amp;#41;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;#123;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return KErrNone;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;#125;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;br /&gt;#else&lt;br /&gt;&lt;br /&gt;TInt E32Main&amp;#40;&amp;#41;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;#123;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Only use EPOCEXE if you really need to (are you writting a server?) otherwise, use EXE if you want an EXE all the time on targert or emulator.&lt;/div&gt;</description>
 <pubDate>Wed, 20 Oct 2004 13:35:46 +0200</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 10296 at http://www.newlc.com</guid>
</item>
<item>
 <title>exe and CBase 69 panic.</title>
 <link>http://www.newlc.com/topic-3313</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-3313&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-3313#comments</comments>
 <category domain="http://www.newlc.com/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Wed, 20 Oct 2004 13:15:37 +0200</pubDate>
 <dc:creator>wfettich</dc:creator>
 <guid isPermaLink="false">4259 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
