Results 1 to 5 of 5

Thread: Exception not controlled

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Unhappy Exception not controlled

    Hi,

    I'm having an application crash with a message "uncontrolled exception 0x00dcdeac". The lib that is causing the exception is a 3rd party lib that I don't have the source.
    The application always stop with this exception and the debugger shows me that the last instruction is in "qatomic.h" in line 73(I'm using Visual Studio 2003 with Qt 4.3.0 and it marks this line with a green arrow).
    The call stack shows "xxxxxxx.lib!00dcdeac()".
    I don't really know how can I know where is the problem. Any suggestion and help will be helpfull.

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Exception not controlled

    i) presumably VS has an option to break (in the debugger) when an exception is thrown.
    ii) the stacktrace will show you where the exception is thrown
    iii) you have to wrap the call with a try-catch block and handle the exception appropriately

  3. #3
    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: Exception not controlled

    try to "reimplement QApplication::notify() and catch all exceptions there.".
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  4. #4
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Exception not controlled

    Hi,

    Thanks for replies.

    i) presumably VS has an option to break (in the debugger) when an exception is thrown.
    I didn't find it.

    ii) the stacktrace will show you where the exception is thrown
    I looked it but all the calls before the crash are from "ntdll.dll" "my3rdLib.dll", "kernel32.dll", "gdi32.dll" and "user32.dll".
    I think that the problem can be on the "display" process because disabling it the application don't crash(it is a multithreaded application that the main thread recieves what to display and display them).

    try to "reimplement QApplication::notify() and catch all exceptions there.".
    I have tried but it is not called anytime.

    Thanks,
    Òscar Llarch i Galán

  5. #5
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Exception not controlled

    Hi,

    Two questions:

    1) I think that the display operation is performed by GDI(I'm using Windows). So, maybe displaying too many fast can crash the application?

    2) Can a QQueue be accessed by two threads, the first one "enqueuing" and the second one "dequeuing"? As I readed in the doc the queue can be accessed at a time by two or more threads because it is thread-safe.

    Thanks,
    Òscar Llarch i Galán

Similar Threads

  1. Replies: 0
    Last Post: 22nd May 2009, 09:55
  2. Ask for help: exception at 0x6549960a (QtGuid4.dll)
    By richardander in forum Qt Programming
    Replies: 3
    Last Post: 11th March 2009, 12:47
  3. Exception type loss
    By azdruid in forum Qt Programming
    Replies: 3
    Last Post: 6th November 2007, 20:06
  4. c++, placement delete upon exception
    By stinos in forum General Programming
    Replies: 6
    Last Post: 31st October 2006, 15:38
  5. Exceptions and qApp->processEvents()
    By mcostalba in forum Qt Programming
    Replies: 3
    Last Post: 8th January 2006, 17:06

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.