<?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 - Error memory  Full....? - Comments</title>
 <link>http://www.newlc.com/forum/error-memory-full</link>
 <description>Comments for &quot;Error memory  Full....?&quot;</description>
 <language>en</language>
<item>
 <title>Re: Error memory  Full....?</title>
 <link>http://www.newlc.com/forum/error-memory-full#comment-46175</link>
 <description>&lt;p&gt;A TPtr and a TPtrC is not a C/C++ pointer - you should not allocate these on the heap.&lt;/p&gt;

&lt;p&gt;And what about deleting all those other objects you create?&lt;/p&gt;</description>
 <pubDate>Mon, 05 May 2008 23:44:02 +0200</pubDate>
 <dc:creator>Numpty Alert</dc:creator>
 <guid isPermaLink="false">comment 46175 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Error memory  Full....?</title>
 <link>http://www.newlc.com/forum/error-memory-full#comment-46145</link>
 <description>&lt;p&gt;Difficult to make sense of your code, not knowing which variables are local, which member variables, which global and what values they have. For example:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;ptrSoundBuf1 = HBufC8::NewL( FileLen1 );&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;How much memory are you trying to allocate here? You must know that most newest phones have at most tens of megabytes of free RAM to allocate? Optimistically, when no other apps are running. In older phones you have only 1-15 megabytes when no other apps are running.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Sun, 04 May 2008 19:10:40 +0200</pubDate>
 <dc:creator>Andreas</dc:creator>
 <guid isPermaLink="false">comment 46145 at http://www.newlc.com</guid>
</item>
<item>
 <title>Error memory  Full....?</title>
 <link>http://www.newlc.com/forum/error-memory-full</link>
 <description>&lt;p&gt;Hi.&lt;br /&gt;
I have a big file that it&#039;s size is 248 MB.The following code open this file :  &lt;br /&gt;
void CPlayerAdapter::SetFileName( const TInt nFile1, const TInt nFile2, const TInt nFile3 )&lt;br /&gt;
{&lt;br /&gt;
User::LeaveIfError(fs.Connect());&lt;br /&gt;
User::LeaveIfError( SoundFile.Open(fs, FileName, EFileRead) );&lt;/p&gt;

&lt;p&gt;if ( nFile1 != -1 )&lt;br /&gt;
{&lt;br /&gt;
	SoundFile.Seek( ESeekStart, FilePos1 );&lt;br /&gt;
	ptrSoundBuf1 = HBufC8::NewL( FileLen1 );&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/error-memory-full&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/error-memory-full#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Sat, 03 May 2008 09:30:05 +0200</pubDate>
 <dc:creator>farjamfard</dc:creator>
 <guid isPermaLink="false">20852 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
