×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    24

    Application crashes with "System error" if installed on memory card.

    Hi all.
    When i'm trying to start my application on 3650 after installing it on memory card it crashes with
    "System error" message.
    It works fine if it is installed on drive C:.

    The .pkg file written in such way:
    "[filename]" -"!:\system\apps\Car\[filename]"

    What is wrong?

    Please help me!

    Thanx in advance.

    Kostiantyn Sydoruk

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    You are probably using hardcoded paths to files... (maybe .MBM file?)

    You must change your application to be able dynamically resolve path where it is installed...

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    Something like this should do the job (in iMbmFileName is desired file named like the app with extension MBM):

    Code:
    TFileName iMbmFileName;
    
    // Get the application name with full path
    TFileName app = CEikonEnv::Static()->EikAppUi()->Application()->AppFullName();
    
    // Replace extension with mbm
    TParsePtr parse(app);
    iMbmFileName.Copy(parse.DriveAndPath());
    iMbmFileName.Append(parse.Name());
    _LIT(KMbm, ".mbm");
    iMbmFileName.Append(KMbm);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×