Results 1 to 3 of 3

Thread: Strange behaviour of QFileDialog::getSaveFileName

  1. #1
    Join Date
    Dec 2010
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Strange behaviour of QFileDialog::getSaveFileName

    Hey guys,
    I'm facing an strange error when opening an savefile-dialog with QFileDialog::getSaveFileName.

    If I want to debug my application the error
    "NtClose was called for a Handle that was protected from closing via NtSetInformationObject" (quick translation by myself from german into english) appears when reaching the line with QFileDialog::getSaveFileName.

    But if I just start the application (without the debugger attached to it) it all runs well...QFileDialog::getSaveFileName gets called correctly and without any errors and I can select a path where I want to save my files.

    Anyone else did face that problem? I want to debug my application because there are several bugs in it but I can't because of this strange behaviour :-/

    Thanks in advance for an answer.

    BTW: I'm using Visual Studio 2008 and Qt 4.1

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Strange behaviour of QFileDialog::getSaveFileName

    Maybe you have a bug somewhere which is corrupting the heap or stack and thus causing this error?

  3. #3
    Join Date
    Dec 2010
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Strange behaviour of QFileDialog::getSaveFileName

    I figured it out.
    The reason for the errormessages was my antivirus program "Avira Antivir".
    This is the workaround link for german people:
    http://forum.avira.com/wbb/index.php...hreadID=123783

    and a quick translation for you other guys
    After an update of the virusscanner visual studio couldn't load the wininet.dll if the debugger got attached.
    The only working workaround is to deinstall the Avira Guard/MailGuard/WebGuard/Rootkit-Protection and do a reboot.

Similar Threads

  1. QInputDialog like QFileDialog::getSaveFileName
    By BIllNo123 in forum Newbie
    Replies: 5
    Last Post: 23rd September 2010, 14:51
  2. Strange Behaviour with QProcess, QFileDialog and gdb
    By vratojr in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2010, 11:48
  3. problem with QFileDialog::getSaveFileName
    By navi1084 in forum Qt Programming
    Replies: 4
    Last Post: 26th June 2009, 07:38
  4. A question about QFileDialog::getSaveFileName
    By Ali in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2007, 19:46
  5. QFileDialog::getSaveFileName issues with filename
    By dugs in forum Qt Programming
    Replies: 2
    Last Post: 11th December 2006, 17:17

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.