×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    on device N-97 background image get disappear or get black background

    Hello Friends,

    my application is smoothly running on simulator and there my background do not get crash, but when i installed application on device N-97 and playing with than after navigation of few screen background image get disappear or get black background.please any one tell me what is the reason behind this or i have implement any wrong this in my code.

    please tell me

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: on device N-97 background image get disappear or get black background

    Quote Originally Posted by amitsharma_ujj View Post
    Hello Friends,

    my application is smoothly running on simulator and there my background do not get crash, but when i installed application on device N-97 and playing with than after navigation of few screen background image get disappear or get black background.please any one tell me what is the reason behind this or i have implement any wrong this in my code.

    please tell me
    Without showing any code how can one figure out, if you have done something wrong in code.

  3. #3
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: on device N-97 background image get disappear or get black background

    This is usually a sign of running out of heap.

  4. #4
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: on device N-97 background image get disappear or get black background

    Quote Originally Posted by danhicksbyron View Post
    This is usually a sign of running out of heap.
    i am working with QT application and i have increase heap size (write EPOCHEAPSIZE 0x1000 0x1F400000 in mmp file and write # EPOCSTACKSIZE 0x14000 in mmp file).
    but still background image get black and it generates KERN-EXEC 3 AND USER-EXEC 3 this panic code.

    Thanks

  5. #5
    Nokia Developer Champion
    Join Date
    Aug 2010
    Location
    Ahmedabad
    Posts
    299

    Re: on device N-97 background image get disappear or get black background

    Can you please show a sample code here?

  6. #6
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: on device N-97 background image get disappear or get black background

    That isn't the proper way to adjust heap in Qt. Use, eg:

    TARGET.EPOCHEAPSIZE = 0x1000000 0x1400000

    In your .pro file.

    An initial heap size of 0x1000 (4K bytes) is uselessly small -- it should be set to be approximately what your app needs to get started. A max heap size of 0x1F400000 (half a gigabyte) is incredibly large, on the other hand.

  7. #7
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: on device N-97 background image get disappear or get black background

    Sir,

    in my application i am having 35 screen(.cpp and .h) so it will not possible to show whole code.
    When i runs application on simulator ,it works fine but when i install it on N8 and N-97 mini than this problem occurs.

    I will be thankful for your replay.

  8. #8
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: on device N-97 background image get disappear or get black background

    Sir,

    I have written this in my .pro file
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x1F400000 0x12500000
    than after my application backgroung image get disappear .
    what should i do for it ?
    I will be thank ful for your replay.

  9. #9
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: on device N-97 background image get disappear or get black background

    I suspect that the heap settings have no effect on the simulator.

  10. #10
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: on device N-97 background image get disappear or get black background

    Well, I guess you'll have to debug the problem.

  11. #11
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: on device N-97 background image get disappear or get black background

    If you're getting KERN-EXEC 3 you've got some bugs.

  12. #12
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: on device N-97 background image get disappear or get black background

    Sir,


    welcome.h


    #ifndef WELCOMEPAGE_H
    #define WELCOMEPAGE_H

    #include <QWidget>
    #include "DataBaseConnection.h"
    #include <QtGui>

    namespace Ui {
    class welcomePage;
    }

    class welcomePage : public QStackedWidget
    {
    Q_OBJECT

    public:
    explicit welcomePage(QStackedWidget *parent = 0);
    ~welcomePage();
    public slots:
    void loginscreen();
    private:
    Ui::welcomePage *ui;
    DataBaseConnection Conn;
    QTimer *t;
    };

    #endif // WELCOMEPAGE_H

    //////////////welcome.cpp////////

    #include "welcomePage.h"
    #include "ui_welcomePage.h"
    #include"loginFormS2.h"
    #include "facilityPageS14.h"
    #include"menuS29.h"
    #include"selectDvdS20.h"

    welcomePage::welcomePage(QStackedWidget *parent) :
    QStackedWidget(parent),
    ui(new Ui::welcomePage)
    {

    ui->setupUi(this);
    t=new QTimer(this);
    connect(t,SIGNAL(timeout()),this,SLOT(loginscreen()));
    t->start(3000);
    connect(ui->touchButton,SIGNAL(clicked()),this,SLOT(loginscreen()));
    }

    welcomePage::~welcomePage()
    {
    delete ui;
    }
    void welcomePage::loginscreen()
    {
    loginFormS2 *login=new loginFormS2();
    login->showFullScreen();
    this->close();
    t->stop();
    }
    this is the way to implementing all 35 screen.

  13. #13
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: on device N-97 background image get disappear or get black background

    The piece of code shown looks fine. Its not possible for you to paste entire code, so would suggest you to do some debugging and identify in which module the issue could be.

    Check if commenting out some part will work.

  14. #14
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: on device N-97 background image get disappear or get black background

    Hello Sir,

    finally i have solve my problem, in my application there is memory leak. i was open one widget in all screen but i forget to close it. Now my application is pretty stable.

    Thanks for replay

Similar Threads

  1. Replies: 2
    Last Post: 2009-05-29, 10:15
  2. Get phone's background image
    By Pada in forum Mobile Java General
    Replies: 4
    Last Post: 2009-04-23, 13:53

Posting Permissions

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