<?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 - Forum topic - Comments</title>
 <link>http://www.newlc.com</link>
 <description>Comments for &quot;Forum topic&quot;</description>
 <language>en</language>
<item>
 <title>Re: saving text to file</title>
 <link>http://www.newlc.com/forum/saving-text-file#comment-47335</link>
 <description>&lt;p&gt;i have already seen dat, actually the code which im applying in container is:&lt;br /&gt;
the compiler is not able to identify aVar,.so if u can help&lt;br /&gt;
 TBuf8&lt;200&gt;aVar;&lt;br /&gt;
   	iEditor-&gt;aVar.GetText(aVar);&lt;br /&gt;
	RFile File;&lt;br /&gt;
	RFs iFs;&lt;br /&gt;
	iFs.Connect();&lt;br /&gt;
	File.Replace(iFs,_L(&quot;\C\\Data\\Others\\File.txt&quot;),EFileWrite);&lt;br /&gt;
	File.Write(aVar);&lt;br /&gt;
	File.Close();&lt;br /&gt;
	iFs.Close();		&lt;br /&gt;
    &lt;/p&gt;</description>
 <pubDate>Sat, 05 Jul 2008 15:33:04 +0200</pubDate>
 <dc:creator>vineet.jain</dc:creator>
 <guid isPermaLink="false">comment 47335 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: saving text to file</title>
 <link>http://www.newlc.com/forum/saving-text-file#comment-47334</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://wiki.forum.nokia.com/index.php/Reading_and_writing_files&quot;&gt;http://wiki.forum.nokia.com/index.php/Reading_and_writing_files&lt;/a&gt;&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Sat, 05 Jul 2008 15:15:40 +0200</pubDate>
 <dc:creator>N_A</dc:creator>
 <guid isPermaLink="false">comment 47334 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: passing arguments in asyncronous server</title>
 <link>http://www.newlc.com/forum/passing-arguments-asyncronous-server#comment-47332</link>
 <description>&lt;p&gt;thanks for the reply ...&lt;br /&gt;
the code is working properly on the device ....above code is fine ..due to some binary mismatch things were not working in the e50.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 16:21:32 +0200</pubDate>
 <dc:creator>mearunsingh</dc:creator>
 <guid isPermaLink="false">comment 47332 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: passing arguments in asyncronous server</title>
 <link>http://www.newlc.com/forum/passing-arguments-asyncronous-server#comment-47331</link>
 <description>&lt;p&gt;IPC can be tricky when you want to send lots of data over... &lt;/p&gt;

&lt;p&gt;What is the length returned from GetDesMaxLength?  &lt;/p&gt;

&lt;p&gt;If its a negative value (most commonly -38, KErrBadDescriptor) then the problem is probably in how you send the descriptor&lt;/p&gt;

&lt;p&gt;If its positive, maybe you have some OOM-problems on target, if the heap in your server is too small?&lt;/p&gt;

&lt;p&gt;I also notice you don&#039;t delete your desData afterwards, maybe you have a leak here?&lt;/p&gt;

&lt;p&gt;Overall, to me, it looks like your code should work though...  It working on emu but not on target makes it feel a bit like OOM.&lt;/p&gt;

&lt;p&gt;Only one weirdness, shouldn&#039;t the RBuf be a RBuf8?&lt;/p&gt;

&lt;p&gt;Two notes though:&lt;br /&gt;
- the TIpcArgs itself, can live on stack, it is copied by the kernel when sending the message. Problem is with pointers stored in it.&lt;br /&gt;
- You can probably rewrite this to save one rather big copy on this line:&lt;br /&gt;
&lt;pre class=&quot;bb-code-block&quot;&gt;
iData.Copy( iCryptoData-&amp;gt;MarshalDataL( aFolderList ) );
&lt;/pre&gt;&lt;br /&gt;
Easiest way to do that would probably be to simply rewrite your MarshalDataL to take a RBuf reference, and fill it up directly, instead of going through a HBufC.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 16:10:32 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 47331 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: changing colour of text</title>
 <link>http://www.newlc.com/forum/changing-colour-text#comment-47330</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/Playing-with-CEikEdwin.html&quot; class=&quot;bb-url&quot;&gt;http://www.newlc.com/Playing-with-CEikEdwin.html&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 14:33:51 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 47330 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: tabs</title>
 <link>http://www.newlc.com/forum/tabs#comment-47329</link>
 <description>&lt;p&gt;nice &lt;img src=&quot;/sites/all/modules/smileys/packs/example/wink.png&quot; title=&quot;Eye-wink&quot; alt=&quot;Eye-wink&quot; /&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 13:42:29 +0200</pubDate>
 <dc:creator>Symbian_Neil</dc:creator>
 <guid isPermaLink="false">comment 47329 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: text editor</title>
 <link>http://www.newlc.com/forum/text-editor#comment-47328</link>
 <description>&lt;p&gt;thank you Rene....or guiding me ..i debugged n found where it crashes....ur advice was valuable.. &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt; ...now my app is running successfully...&lt;/p&gt;

&lt;p&gt;take care&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 13:26:23 +0200</pubDate>
 <dc:creator>sumit.rathi</dc:creator>
 <guid isPermaLink="false">comment 47328 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: plain text editor</title>
 <link>http://www.newlc.com/forum/plain-text-editor#comment-47327</link>
 <description>&lt;p&gt;Don&#039;t know...&lt;/p&gt;

&lt;p&gt;It&#039;s perfectly normal for the debugger to skip the line with the TResourceReader declaration because no code is executed at that line. This does not mean something is wrong.&lt;/p&gt;

&lt;p&gt;I am not sure, but maybe it is worth a try to do an ActivateL() for the EdWin as well.&lt;/p&gt;

&lt;p&gt;In your .rss file, do you give a proper length and good coordinates for your EdWin?&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 13:14:40 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 47327 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: passing arguments in asyncronous server</title>
 <link>http://www.newlc.com/forum/passing-arguments-asyncronous-server#comment-47325</link>
 <description>&lt;p&gt;in emulator things are working properly but in device data is not passed from client to server.&lt;br /&gt;
i am marshalling the data(RArray list of TFileName) in the client side and un-marshalling the data on the server side.&lt;/p&gt;

&lt;p&gt;client side:&lt;br /&gt;
aFolderList  is RArray&lt;TFileName&gt;&lt;br /&gt;
RBuf iData;&lt;/p&gt;

&lt;p&gt;Clinet( aFolderList )&lt;br /&gt;
{&lt;br /&gt;
    iData.Create(100);&lt;br /&gt;
    iFolderCount = aFolderList.Count();&lt;br /&gt;
    iData.Copy( iCryptoData-&gt;MarshalDataL( aFolderList ) );&lt;br /&gt;
        iArgs.Set( 0,&amp;iData );&lt;br /&gt;
        iArgs.Set( 1, iFolderCount);&lt;/p&gt;

&lt;p&gt;        SendReceive( ESetFolderList, iArgs, iStatus );&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;server side:&lt;/p&gt;

&lt;p&gt;in session(const RMessage2&amp; aMessage)&lt;br /&gt;
{&lt;br /&gt;
        TInt clientDesMaxLen;&lt;br /&gt;
         clientDesMaxLen = aMessage.GetDesMaxLength(0);&lt;br /&gt;
        HBufC8* desData = HBufC8::NewLC(clientDesMaxLen);// in device it fails here means len is not proper&lt;br /&gt;
        TPtr8 readPtr(desData-&gt;Des());&lt;br /&gt;
        aMessage.ReadL(0, readPtr);&lt;br /&gt;
        TInt folderCount = aMessage.Int1();&lt;br /&gt;
        RArray&lt;TFileName&gt; folderList;&lt;br /&gt;
        iData = CCryptoData::NewL();&lt;br /&gt;
        iData-&gt;UnMardhalDataL(*desData, folderList, folderCount);&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;above code is working fine in emulator but in device in server side it fails.&lt;br /&gt;
so can u please tell me how to pass the data(folder list)  in different processes (i.e client server)&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 12:48:21 +0200</pubDate>
 <dc:creator>mearunsingh</dc:creator>
 <guid isPermaLink="false">comment 47325 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Memory Leak in RDbView::Prepare API</title>
 <link>http://www.newlc.com/forum/memory-leak-rdbviewprepare-api#comment-47317</link>
 <description>&lt;p&gt;I&#039;m not really sure what you mean?&lt;/p&gt;

&lt;p&gt;If you put __UHEAP_MARK directly before that piece of code, and then MARKEND directly after, you should get an ALLOC panic...&lt;br /&gt;
That&#039;s because either Prepare or EvaluateAll (or both) allocate memory, and it will not be freed until you &quot;Close&quot; the view.&lt;/p&gt;

&lt;p&gt;I&#039;m also not sure what you are trying to &quot;look for&quot;? &lt;br /&gt;
If you have a memory leak in your app, you will get an ALLOC panic on exit, if you don&#039;t get that, you don&#039;t have a leak.&lt;br /&gt;
If you do get ALLOC panic on exit, the easiest way to track it down is not to move around MARK/MARKEND in your code, the easiest way is to use HookLogger from symbian:&lt;br /&gt;
&lt;a href=&quot;http://developer.symbian.com/main/tools_and_sdks/developer_tools/supported/hook_logger/index.jsp&quot;&gt;http://developer.symbian.com/main/tools_and_sdks/developer_tools/supported/hook_logger/index.jsp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It (among other things) tracks all allocations and deallocations, and you can at any point list them all, including the callstack that generated the allocation.&lt;br /&gt;
If you look in the list whilst the &quot;ALLOC&quot; panic dialog is showing, you will get a nice list of all your leaks, and you can fix them all at the same time.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 10:05:36 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 47317 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: text editor</title>
 <link>http://www.newlc.com/forum/text-editor#comment-47324</link>
 <description>&lt;p&gt;Well, just debug the thing and see where the exception occurs. Without knowing that you won&#039;t get further. And if you do not yet know how to debug, then *now* is the time to learn it, because knowing how to debug with the help of the emulator is, if you ask me, an absolute must for programming on Symbian.&lt;/p&gt;

&lt;p&gt;Don&#039;t leave home without your debugger &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 09:44:40 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 47324 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: text editor</title>
 <link>http://www.newlc.com/forum/text-editor#comment-47323</link>
 <description>&lt;p&gt;thanx a lot rbrunner.....i have included it n it compiled successfully....but when i running it on emulator app is not opening a error code is coming &lt;br /&gt;
KERN-EXEC 3........plzz tell me something abt this&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 09:32:00 +0200</pubDate>
 <dc:creator>sumit.rathi</dc:creator>
 <guid isPermaLink="false">comment 47323 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: text editor</title>
 <link>http://www.newlc.com/forum/text-editor#comment-47322</link>
 <description>&lt;p&gt;which  .rsg file i should inlude n where plzz tell me&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 09:22:10 +0200</pubDate>
 <dc:creator>sumit.rathi</dc:creator>
 <guid isPermaLink="false">comment 47322 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: text editor</title>
 <link>http://www.newlc.com/forum/text-editor#comment-47321</link>
 <description>&lt;p&gt;You have to #include the .rsg file for the constants from the .rss to become known in your code.&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 09:08:03 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 47321 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Bluetooth Virtual Serial Port for 7610 --need help</title>
 <link>http://www.newlc.com/topic-3979#comment-47320</link>
 <description>&lt;p&gt;I also need it . Thanks a lot ,Corben.&lt;br /&gt;
My e-mail is &lt;script type=&quot;text/javascript&quot;&gt;eval(unescape(&#039;%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6c%69%6e%78%69%61%6f%67%75%6f%40%68%6f%74%63%61%72%64%74%65%63%68%2e%63%6f%6d%22%3e%6c%69%6e%78%69%61%6f%67%75%6f%40%68%6f%74%63%61%72%64%74%65%63%68%2e%63%6f%6d%3c%2f%61%3e%27%29%3b&#039;))&lt;/script&gt;.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 08:20:16 +0200</pubDate>
 <dc:creator>jmulxg</dc:creator>
 <guid isPermaLink="false">comment 47320 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
