Results 1 to 10 of 10

Thread: Application crashing

  1. #1
    Join Date
    May 2009
    Posts
    129

    Default Application crashing

    Hi

    i am using Twitter api in my application..

    I used only login api ...

    My project is complied succesfully ...

    When i am running , my application is crashed...


    please help me

    see my code..

    Example.cpp

    Qt Code:
    1. #include <QtGui>
    2. #include "login.h"
    3. #include "ui_login.h"
    4. #include <QDebug>
    5. Login::Login(QWidget *parent)
    6. : QWidget(parent), ui(new Ui::LoginClass)
    7. {
    8. ui->setupUi(this);
    9. ui->pushButton->setText("Login");
    10. m_twitLib = new QTwitLib();
    11. }
    12.  
    13. Login::~Login()
    14. {
    15. delete ui;
    16. }
    17.  
    18. void Login::on_pushButton_clicked()
    19. {
    20. m_twitLib->Login(ui->lineEdit->text(),ui->lineEdit_2->text());
    21. qDebug() << "ghuirgdfhngjesbfxcbnvfds";
    22. }
    23. void Login::OnError(QString error)
    24. {
    25. ui->textEdit->append("ERROR "+error);
    26. } //=====================================================================
    27. void Login::OnMessageReceived(QString message)
    28. {
    29. ui->textEdit->append("MESSAGE "+message);
    30. } //=====================================================================
    31. void Login::OnStatusReceived(SERVER::RESP response)
    32. {
    33. ui->textEdit->append("STATUS REC "+QString::number(response));
    34. }
    To copy to clipboard, switch view to plain text mode 
    .

    Example.h
    Qt Code:
    1. #ifndef LOGIN_H
    2. #define LOGIN_H
    3. #include "QTwitLib.h"
    4.  
    5. #include <QtGui/QWidget>
    6.  
    7. namespace Ui
    8. {
    9. class LoginClass;
    10. }
    11.  
    12. class Login : public QWidget
    13. {
    14. Q_OBJECT
    15.  
    16. public:
    17. Login(QWidget *parent = 0);
    18. ~Login();
    19. void OnError(QString error);
    20. void OnMessageReceived(QString message);
    21. void OnStatusReceived(SERVER::RESP response);
    22. //void OnResponseReceived(Returnables::Response *);
    23.  
    24. private:
    25. //void MakeConnections();
    26. //void DisplayList(QLinkedList<Returnables::StatusElement*> list, QString header);
    27.  
    28. Ui::LoginClass *ui;
    29. QTwitLib *m_twitLib;
    30.  
    31. private slots:
    32. void on_pushButton_clicked();
    33. };
    34.  
    35. #endif // LOGIN_H
    36.  
    37. Here
    To copy to clipboard, switch view to plain text mode 

    if i comment the m_twitLib ->Login ,it is showing ...otherwise it is not showing...

    if you need full code... i will post it


    please help me
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Application crashing

    Please post a backtrace from the debugger.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2009
    Posts
    129

    Default Re: Application crashing

    Hi

    i have included my debug details.... it showing login.ui is unfound...
    Attached Files Attached Files

  4. #4
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Application crashing

    it's compiler output and has nothing to do with debug backtrace. Just use debugger and you will see where the crash appeared.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  5. #5
    Join Date
    May 2009
    Posts
    129

    Default Re: Application crashing

    Hi

    Already i haven so many debugger statements...

    complier is not entering even main .cpp ..



    How do solve thisa issue...


    Please help me

    Thanks

  6. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Application crashing

    attach compilable example.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  7. #7
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Application crashing

    Quote Originally Posted by addu View Post
    Hi

    Already i haven so many debugger statements...

    complier is not entering even main .cpp ..



    How do solve thisa issue...


    Please help me

    Thanks
    So it crashes or it doesn't compile? And do you know the difference between debugger and compiler?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  8. #8
    Join Date
    May 2009
    Posts
    129

    Default Re: Application crashing

    No, please tell me the difference...

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Application crashing

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #10
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Application crashing

    Quote Originally Posted by addu View Post
    No, please tell me the difference...
    No, please use www.google.com to get required knowledge to write, debug and deploy an application in C++.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. Application crashing on setting Model in QComboBox.
    By kaushal_gaurav in forum Qt Programming
    Replies: 6
    Last Post: 13th February 2009, 19:20
  2. Replies: 4
    Last Post: 1st December 2008, 12:13
  3. application freezes without crashing (and closing)
    By nass in forum Qt Programming
    Replies: 15
    Last Post: 25th September 2007, 12:21
  4. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 19:37
  5. Application is Crashing
    By shyam prasad in forum Qt Programming
    Replies: 1
    Last Post: 9th January 2007, 18:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.