×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    14

    Post Application Crashed

    I developed a Symbian WRT widget for Nokia. Its working fine. But Some time My widget is crashing and closing the application. Don't know why? I'm getting the error "WidgetUi - KERN-EXEC - 3", and some times "Posserver E32User-CBase42". This error I got in Nokia RDA 5800 Xpress Music Device. After the Error Message Application Was closing.

    Below is the .cpp file While creating SIS

    #include <e32base.h>
    #include <e32std.h>
    #include <SWInstApi.h>
    #include <SWInstDefs.h>
    #include <f32file.h>
    #include <aknutils.h>
    #include "WgzInstaller.h"


    static const TSecureId KInstallerSID = 0x101F875A;
    _LIT( KWidgetInstallerDir, "c:\\WgzInstaller\\" );

    //TODO: Use your widget name here
    _LIT( KWidgetInstallerFileName, "mysample.wgz" );


    LOCAL_C TBool isProcessRunning()
    {
    TFullName res;
    TFindProcess find;

    while( find.Next( res ) == KErrNone )
    {
    RProcess ph;
    if (ph.Open( find ) != KErrNone)
    continue;

    TSecureId secId = ph.SecureId();
    ph.Close();

    if (secId == KInstallerSID)
    return ETrue;
    }

    return EFalse;
    }


    LOCAL_C TInt getPath( TDes& path ){

    RFs iFileSession;
    TInt err = iFileSession.Connect();
    if (err != KErrNone)
    return err;

    //Read the name of the widget package
    TFileName widgetFileName;

    widgetFileName.Append(KWidgetInstallerDir);
    widgetFileName.Append(KWidgetInstallerFileName);

    path.Copy(widgetFileName);

    TFindFile findFile(iFileSession);
    findFile.FindByDir(path,KNullDesC);

    path = findFile.File();
    iFileSession.Close();

    return KErrNone;
    }


    // Global Variables
    GLDEF_C TInt E32Main()
    {
    // Create cleanup stack
    __UHEAP_MARK;
    CTrapCleanup* cleanup = CTrapCleanup::New();

    // get wgz path
    TFileName path;
    getPath( path );

    //wait while process installer doesn't stop running
    while( isProcessRunning() ) {
    User::After( 1000000 ); // put thread to sleep for 1 second
    }

    SwiUI::RSWInstLauncher iLauncher;

    if (iLauncher.Connect() == KErrNone)
    {
    iLauncher.Install( path );
    iLauncher.Close();
    }

    //Now we can delete the directory with the temp installation files to free up memory
    RFs iFileSession;
    iFileSession.Connect();
    CFileMan* fileMan;
    TRAPD(err, fileMan = CFileMan::NewL(iFileSession));
    if(!err)
    {
    fileMan->RmDir(KWidgetInstallerDir);
    delete fileMan;
    }

    iFileSession.Close();

    delete cleanup;

    __UHEAP_MARKEND;
    return err;
    }


    Can any body help me regarding this issue? Where I'm doing Wrong.
    And also I'm using Platformservices for geolocation and ApiBridge for Camera.

    Plzzzzzzz

  2. #2
    (Retired) Nokia Developer Admin.
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    4,664

    Re: Application Crashed

    Closed No Reply

Similar Threads

  1. Application is crashed when connecting to a socket
    By JulianoLoren in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2010-09-14, 08:29
  2. Application crashed on E61 & E71
    By kalpesh.dev in forum Symbian User Interface
    Replies: 14
    Last Post: 2009-10-30, 13:34
  3. Application crashed when another application acquires camera
    By binli120 in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-10-16, 20:17
  4. crashed application
    By Vitaly_iva in forum Symbian User Interface
    Replies: 6
    Last Post: 2006-04-21, 20:03
  5. Removing Crashed Application (S60)
    By bhollister in forum Mobile Java General
    Replies: 1
    Last Post: 2003-12-29, 07:09

Posting Permissions

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