Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 09:09, 24 August 2007.

TSS000025 - CEikonEnv::Static()-CreateBitmapL() leaves with the error code -1001

From Forum Nokia Wiki


Subject:

CEikonEnv::Static()-CreateBitmapL() leaves with the error code -1001 TSS000025

 

Platform(s): Device(s), SW version(s):
S60 1st Edition
S60 2nd Edition
N/A

Category:

Symbian C++

Subcategory:

General

Description:

When I try to use CEikonEnv::Static()->CreateBitmapL() and opening the file fails, the function always leaves with the error code -1001 regardless of the reason of the error. How can I find out the reason?
Detailed description
When trying to use CEikonEnv::Static()->CreateBitmapL() and opening the file fails, the function leaves always with the error code -1001 regardless of the reason of the error (for example,  "file not found" or "out of memory"). How can I find out whether the error was "file not found" or something else?
Solution
If the reason for the file system error is needed, the CWsBitmap::Load() function can be used instead of CreateBitmapL(). It returns system-wide error codes in case of an error. CEikonEnv uses the CWsBitmap::Load() function to load a bitmap but leaves in case of an error. The idea behind the leave is to provide an error text using an error resolution API. There is a difference in the filename parameter of Load() and CreateBitmapL() functions. The former can only use absolute filenames.
References
For more information about the Error Resolution, see: http://www.symbian.com/developer/techlib/papers/errores/erresapi.html

Creation date:

September 8, 2003

Last modified:

-
Related Discussions
Thread Thread Starter Forum Replies Last Post
read value from a file murmur20 General Symbian C++ 7 2004-12-10 17:51
Please, help me in my problem ZeeMoo General Symbian C++ 8 2006-05-18 09:23
Qns Regarding ActiveViewId ??? chandantheracer General Symbian C++ 21 2008-09-08 23:18
unable to make system calls inside thread function reshmasp General Symbian C++ 2 2004-01-14 15:58
CEikonEnv::Static()->EikAppUi()->Application()->AppFullName() not working swarupk2007 General Symbian C++ 1 2008-07-04 07:16
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZTechnicalSolutionQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX