<?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 - Is it possible to &amp;quot;Trap&amp;quot; a Panic? - Comments</title>
 <link>http://www.newlc.com/en/topic-16956</link>
 <description>Comments for &quot;Is it possible to &quot;Trap&quot; a Panic?&quot;</description>
 <language>en</language>
<item>
 <title>Re: Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956#comment-36168</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: alh&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;But it doesn&amp;#039;t show the panic dialog on a real device does it?&lt;br /&gt;&lt;br /&gt;If it only shows on emulator, it is not much of a problem, or?&lt;br /&gt;&lt;/div&gt;If it only shows on the emulator then I couldn&amp;#039;t care less. But it doesn&amp;#039;t show on the emulator and shows only on the device.&lt;/div&gt;</description>
 <pubDate>Wed, 09 May 2007 15:43:49 +0200</pubDate>
 <dc:creator>mserougi</dc:creator>
 <guid isPermaLink="false">comment 36168 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956#comment-36167</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;But it doesn&amp;#039;t show the panic dialog on a real device does it?&lt;br /&gt;&lt;br /&gt;If it only shows on emulator, it is not much of a problem, or?&lt;/div&gt;</description>
 <pubDate>Wed, 09 May 2007 11:24:50 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36167 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956#comment-36166</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hmm, then I might not have a solution for that, sorry.&amp;nbsp; &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/cry.gif&quot; alt=&quot;Cry&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Also note (you might have already noticed) that there is a similar topic that also discusses this issue: &lt;a href=&quot;http&amp;#58;//forum.newlc.com/index.php?topic=14480&quot; target=&quot;_blank&quot;&gt;http://forum.newlc.com/index.php?topic=14480&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Tote&lt;/div&gt;</description>
 <pubDate>Wed, 09 May 2007 11:19:35 +0200</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 36166 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956#comment-36165</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Even if my faulty code is run from another thread, the faulty code panics and I get to see the KERN-EXEC 3 message, for example.&lt;br /&gt;&lt;br /&gt;My goal is to handle such messages, to catch this kind of panics and exit gracefully, without showing the KERN-EXEC 3 message, for example. &lt;/div&gt;</description>
 <pubDate>Wed, 09 May 2007 11:02:21 +0200</pubDate>
 <dc:creator>mserougi</dc:creator>
 <guid isPermaLink="false">comment 36165 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956#comment-36164</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Yep, run your code in a separate thread other than the main. In case of a panic in the &amp;quot;2nd&amp;quot; thread you can evaluate the reason of exiting in the main thread.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;Tote&lt;/div&gt;</description>
 <pubDate>Tue, 08 May 2007 13:35:43 +0200</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 36164 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956#comment-36163</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Tried both ways, but none works on any actual device; panics are still generated and the exception handler is completely ignored.&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;/div&gt;</description>
 <pubDate>Tue, 08 May 2007 12:45:14 +0200</pubDate>
 <dc:creator>mserougi</dc:creator>
 <guid isPermaLink="false">comment 36163 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956#comment-36162</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Making possible to &amp;#039;catch&amp;#039; a panic using a thread or install exception handler.&lt;/div&gt;</description>
 <pubDate>Wed, 13 Dec 2006 02:21:52 +0100</pubDate>
 <dc:creator>borat</dc:creator>
 <guid isPermaLink="false">comment 36162 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956#comment-36161</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;No you cannot TRAP a panic.&amp;nbsp; Though you can TRAP a leave.&lt;br /&gt;the difference in a leave and a panic is :&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Leave &lt;/b&gt; : a leave occurs under exceptional condition like out of memory or the absence/failure of a communiction link which essentially is not a programmers fault. a leave ca is always caught at the last TRAP in the call stack. the &lt;b&gt;thread continues its execution from there on&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Panic&lt;/b&gt; : Some types of error are due to bad program code, such as passing an illegal parameter value. When this type of error is discovered, the thread associated with the erroneous &lt;b&gt;program should be terminated&lt;/b&gt;. In Symbian OS, this is a referred to as a panic. The only proper response to a panic is to fix the program code. Never ever a program shoul be released which can result in a panic.&lt;br /&gt;&lt;br /&gt;I hope this clears your doubt,&lt;br /&gt;&lt;br /&gt;And reagrding your getting USER 23 panic refer SDK documentation, it says :&lt;br /&gt;&lt;br /&gt;This panic is raised when any operation that moves or copies data to an 8 bit variant descriptor, causes the length of that descriptor to exceed its maximum length.&lt;br /&gt;&lt;br /&gt;It may be caused by any of the copying, appending or formatting member functions and, specifically, by the Insert(), Replace(), Fill(), Fillz() and ZeroTerminate() descriptor member functions. It can also be caused by the SetLength() function. &lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 05 Dec 2006 08:27:33 +0100</pubDate>
 <dc:creator>saurabh_gyl</dc:creator>
 <guid isPermaLink="false">comment 36161 at http://www.newlc.com</guid>
</item>
<item>
 <title>Is it possible to &quot;Trap&quot; a Panic?</title>
 <link>http://www.newlc.com/en/topic-16956</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-16956&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-16956#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Fri, 01 Dec 2006 19:49:07 +0100</pubDate>
 <dc:creator>euroq</dc:creator>
 <guid isPermaLink="false">16532 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
