Results 1 to 3 of 3

Thread: QNetworkInterface::allInterfaces() crashing on Windows 64 systems

  1. #1
    Join Date
    Jan 2011
    Posts
    55
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QNetworkInterface::allInterfaces() crashing on Windows 64 systems

    This issue seems to be present since qt4.5. Calling: QList<QNetworkInterface> interfaces = QNetworkInterface::allInterfaces(); results in a crash on Windows 64bit systems.

    Any chance to fix this somehow?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QNetworkInterface::allInterfaces() crashing on Windows 64 systems

    Are you running a 32-bit executable and libs or 64-bit on your 64-bit machine? Which compiler? Can you post a minimal, complete example that reproduces the crash?

  3. #3
    Join Date
    Jan 2011
    Posts
    55
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QNetworkInterface::allInterfaces() crashing on Windows 64 systems

    Sorry for not giving more details. I'm running a 64bit executable on Windows7 64bit, compiled with VC++ 2008.

    I just need to call the following one and only line of code to get a crash:

    QList<QNetworkInterface> interfaces = QNetworkInterface::allInterfaces();

    I will post the debug window tomorrow as I get my hands on the studio computer...

Similar Threads

  1. Replies: 2
    Last Post: 6th April 2011, 10:47
  2. Crashing without debug mode- No crashing with gdb debugger
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 7th February 2011, 11:27
  3. QMutableListIterator remove() crashing on Windows
    By Valheru in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2008, 10:05
  4. QNetworkInterface get IP
    By pdoria in forum Newbie
    Replies: 2
    Last Post: 3rd January 2008, 08:48
  5. problem w/qnetworkinterface.h
    By ber_44 in forum Installation and Deployment
    Replies: 2
    Last Post: 13th April 2007, 11:38

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.