<?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 in storing the error code globlly. - Comments</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly</link>
 <description>Comments for &quot;Error in storing the error code globlly.&quot;</description>
 <language>en</language>
<item>
 <title>Re: Error in storing the error code globlly.</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly#comment-41166</link>
 <description>&lt;p&gt;reframe ur question with more data n come back.... &lt;/p&gt;

&lt;p&gt;jus a wild guess(as u have not given error code)&lt;/p&gt;

&lt;p&gt;1. file already exists...check for it&lt;br /&gt;
2. path at which files is to be created doesn&#039;t exist, for example if you wanna create in c:\data\temp\myfile.txt then c:\data\temp must be there.. Use BaflUtils::EnsurePathExists() before create....&lt;/p&gt;

&lt;p&gt;without more info, this is what i can add.&lt;/p&gt;

&lt;p&gt;BR&lt;br /&gt;
G;p&lt;/p&gt;</description>
 <pubDate>Thu, 30 Aug 2007 18:19:01 +0200</pubDate>
 <dc:creator>singhgupi</dc:creator>
 <guid isPermaLink="false">comment 41166 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Error in storing the error code globlly.</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly#comment-41146</link>
 <description>&lt;p&gt;How can we know what the reason is when you don&#039;t give any information?&lt;/p&gt;

&lt;p&gt;If you look at the value of ErrorCode yourself it might help you, but without knowing what value gets returned how are we supposed to know? It might be KErrAlreadyExists which isn&#039;t an error at all.&lt;/p&gt;

&lt;p&gt;And what are the contents of filename?&lt;br /&gt;
Where is the fssession.Connect() call made?&lt;/p&gt;

&lt;p&gt;etc.&lt;br /&gt;
etc.&lt;/p&gt;

&lt;p&gt;Are we clairvoyant?&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 30 Aug 2007 02:03:54 +0200</pubDate>
 <dc:creator>Mr. Buttington F. Phucque Lewis</dc:creator>
 <guid isPermaLink="false">comment 41146 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Error in storing the error code globlly.</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly#comment-41121</link>
 <description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;can u paste the error so that we can know wht is the reason for the error.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br /&gt;
Mateen Maldar&lt;/p&gt;</description>
 <pubDate>Wed, 29 Aug 2007 09:00:57 +0200</pubDate>
 <dc:creator>mateen_maldar</dc:creator>
 <guid isPermaLink="false">comment 41121 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Error in storing the error code globlly.</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly#comment-41118</link>
 <description>&lt;p&gt;Yes...&lt;/p&gt;</description>
 <pubDate>Wed, 29 Aug 2007 08:42:42 +0200</pubDate>
 <dc:creator>brajesh1983</dc:creator>
 <guid isPermaLink="false">comment 41118 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Error in storing the error code globlly.</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly#comment-41113</link>
 <description>&lt;p&gt;Have you done fsSession.Connect() somewere before?&lt;/p&gt;</description>
 <pubDate>Wed, 29 Aug 2007 08:25:05 +0200</pubDate>
 <dc:creator>riho</dc:creator>
 <guid isPermaLink="false">comment 41113 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Error in storing the error code globlly.</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly#comment-41111</link>
 <description>&lt;p&gt;&lt;span style=&quot;font-weight:bold&quot;&gt;class CFileHandler&lt;br /&gt;
{&lt;br /&gt;
      RFile file;&lt;br /&gt;
      TInt   ErrorCode;&lt;br /&gt;
public:&lt;br /&gt;
      void CreateFile(const TDesC&amp; filename);&lt;br /&gt;
};&lt;/p&gt;

&lt;p&gt;void CFileHandler::CreateFile(const TDesC&amp; filename)&lt;br /&gt;
{&lt;br /&gt;
ErrorCode=file.Create(fsSession,filename,EFileWrite|EFileStreamText);&lt;/p&gt;

&lt;p&gt;}&lt;br /&gt;
 now i think you would have understand the problem....&lt;br /&gt;
when CreateFile function is called the program gives errror....&lt;br /&gt;
i want to know why ? &lt;/p&gt;

&lt;p&gt;thank you.....for the help....&lt;/span&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 29 Aug 2007 07:51:42 +0200</pubDate>
 <dc:creator>brajesh1983</dc:creator>
 <guid isPermaLink="false">comment 41111 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Error in storing the error code globlly.</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly#comment-41078</link>
 <description>&lt;p&gt;Is your question why does a call to RFile::Create() return an error code, you&#039;ll need to show the rest of the code. Or how to store that error code in a global variable? You&#039;re question is ambiguous.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 28 Aug 2007 02:37:51 +0200</pubDate>
 <dc:creator>Mr. Buttington F. Phucque Lewis</dc:creator>
 <guid isPermaLink="false">comment 41078 at http://www.newlc.com</guid>
</item>
<item>
 <title>Error in storing the error code globlly.</title>
 <link>http://www.newlc.com/en/forum/error-storing-error-code-globlly</link>
 <description>&lt;p&gt;&lt;span style=&quot;font-weight:bold&quot;&gt;Hi can anybody tell me why the following code gives error at run time?&lt;br /&gt;
when this function is called. Actually i want to store the error code globlly.&lt;br /&gt;
void CFileHandler::CreateFile(const TDesC&amp; filename)&lt;br /&gt;
{&lt;br /&gt;
	ErrorCode=file.Create(fsSession,filename,EFileWrite|EFileStreamText);&lt;br /&gt;
	&lt;br /&gt;
}&lt;br /&gt;
Please help..&lt;br /&gt;
Thank you..&lt;/p&gt;

&lt;p&gt;Brajesh...&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/error-storing-error-code-globlly&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/error-storing-error-code-globlly#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 27 Aug 2007 13:49:13 +0200</pubDate>
 <dc:creator>brajesh1983</dc:creator>
 <guid isPermaLink="false">18771 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
