Results 1 to 2 of 2

Thread: QPageSetupDialog is crashing always

  1. #1
    Join Date
    Nov 2007
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default QPageSetupDialog is crashing always

    Hello All

    Greetings,
    I am using QT 4.3.1 commercial version in Windows XP operation system.
    I have written below code snippet to invoke QPageSetupDialog in an QT windows application.

    QPrinter printer( QPrinter::HighResolution );
    QPageSetupDialog objPageSetup(&printer,this);
    if (objPageSetup.exec() == QDialog::Accepted)
    {
    QMessageBox::about(NULL,"QPageSetupDialog"," QPageSetupDialog ");
    }


    Whenever I execute this code, I am able to see the QPageSetupDialog window.When I click the “Ok” in it, It get crashing.

    Error details that I get after crashing are as follows

    Call Stack details
    > ntdll.dll!7c901230()
    [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
    ntdll.dll!7c96c943()
    ntdll.dll!7c96cd80()
    ntdll.dll!7c96df66()
    uxtheme.dll!5ad74de3()
    uxtheme.dll!5ad74d8d()
    ntdll.dll!7c94a5d0()
    user32.dll!7e41d074()
    user32.dll!7e418bd9()
    user32.dll!7e41885a()
    user32.dll!7e41882a()
    user32.dll!7e41882a()
    user32.dll!7e41b4c0()
    ntdll.dll!7c9268ad()
    user32.dll!7e41dadf()
    ntdll.dll!7c90eae3()
    user32.dll!7e4186e7()
    user32.dll!7e42db47()
    user32.dll!7e42593f()
    kernel32.dll!7c80fcff()
    comdlg32.dll!763d38f5()
    ntdll.dll!7c96e0d4()
    ntdll.dll!7c94a5d0()
    ntdll.dll!7c926abe()
    ntdll.dll!7c94a1f5()
    ntdll.dll!7c91b5f4()
    ntdll.dll!7c91b686()
    ntdll.dll!7c94a1f5()
    ntdll.dll!7c91b686()
    ntdll.dll!7c926abe()
    ntdll.dll!7c91b686()
    ntdll.dll!7c91b298()
    ntdll.dll!7c9106eb()
    ntdll.dll!7c91b686()
    ntdll.dll!7c91b298()
    ntdll.dll!7c9106eb()
    ntdll.dll!7c96d8a2()
    ntdll.dll!7c91056d()
    ntdll.dll!7c917cb7()
    ntdll.dll!7c917bb0()
    ntdll.dll!7c96d886()
    ntdll.dll!7c949d18()
    ntdll.dll!7c96cde9()
    ntdll.dll!7c91b686()
    ntdll.dll!7c96d886()
    ntdll.dll!7c91b686()
    ntdll.dll!7c96d6cc()
    ntdll.dll!7c96d886()
    ntdll.dll!7c9106eb()
    kernel32.dll!7c80fe6f()
    kernel32.dll!7c80fe25()
    comdlg32.dll!763d3ae6()
    comdlg32.dll!763d4919()

    Please find the attached error message box snap shot which I get after crashing.
    It would be grateful if any information is shared about the same.
    Thanks
    Attached Images Attached Images

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

    Default Re: QPageSetupDialog is crashing always

    The call stack is useless - you need to compile in debug mode, so that the symbol names are visible. The code snippet doesn't say much either, could you provide more code?

Similar Threads

  1. Replies: 2
    Last Post: 31st August 2011, 16:15
  2. Visual studio6.0 is crashing
    By shekhar.sahoo in forum Installation and Deployment
    Replies: 3
    Last Post: 28th November 2007, 07:45
  3. Application is Crashing
    By shyam prasad in forum Qt Programming
    Replies: 1
    Last Post: 9th January 2007, 17:04
  4. QTableWidget crashing
    By therealjag in forum Qt Programming
    Replies: 5
    Last Post: 19th April 2006, 16:30
  5. QTextCodec decode chinese gb2312 crashing...
    By denny.t in forum Qt Programming
    Replies: 3
    Last Post: 31st March 2006, 06:50

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.