Cannot read data files if I install in memory card

Login to reply to this topic.
Wed, 2004-12-22 13:02
Joined: 2004-12-22
Forum posts: 2
Can someone tell me how to access the datafiles if I install the application on the memory card. (I use a Nokia 6600). The app runs fine when I install on the phone memory. However due to space limitations I have to put the application on the memory card. The application runs but stops without any warning when I run any activity involving file read & write.

Do we have to use some drive letter like D: or C: etc. Roll Eyes

3rd Learner Booksy.


Mon, 2004-12-27 20:51
Joined: 2004-01-06
Forum posts: 18
Cannot read data files if I install in memory card
Try to use drive letter. You can also check disk space before read or write using SysUtil::DiskSpaceBelowCriticalLevelL method.

C: is phone memory
E: is memory card
Z: ROM
Tue, 2004-12-28 04:39
Joined: 2004-12-22
Forum posts: 2
Are these drive letters universal
Thanx juuseri,

Are these drive letters universal standard for all series 60 phones or only for Nokia 6600.

=Shubhrakant

3rd Learner Booksy.

Tue, 2004-12-28 09:59
Joined: 2004-01-06
Forum posts: 18
Cannot read data files if I install in memory card
I think universal standard, but i am not 100% sure.
Thu, 2004-12-30 11:17
Joined: 2004-10-13
Forum posts: 28
Cannot read data files if I install in memory card
At least currently all series 60 phones implement the drive letters this way. However, it could change some day. So I propose using the PathInfo class (part of platformenv.lib, pathinfo.h) to get them. Use RomRootPath(), PhoneMemoryRootPath() and MemoryCardRootPath(). From there you can extract the drive with TParse. e.g.

Code:

TFileName drivePath( PathInfo::MemoryCardRootPath() );    
fileName.Append( TParsePtrC( drivePath ).Drive() );
fileName.Append( KMyFilePath );

Thu, 2004-12-30 21:01
Joined: 2004-05-20
Forum posts: 83
Cannot read data files if I install in memory card
Could anyone tell what drive D: holds?

c0deab1e

Thu, 2004-12-30 22:05
Joined: 2004-10-13
Forum posts: 28
Cannot read data files if I install in memory card
D is the phone's ram drive, which is not persistent across reboot.
  • Login to reply to this topic.