Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem emiting a Signal from a catch block using VC10.
Forum Updated to NodeBB v4.3 + New Features

Problem emiting a Signal from a catch block using VC10.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jh224
    wrote on last edited by
    #1

    I'm having a problem crashing when I try to emit a signal from a catch block with Visual C++ 2010. The same code runs fine under mingw. I've tried a connect with Qt::DirectConnection but with the same result. I know what the exception is, I just want to be able to handle it without crashing.

    @
    // works with mingw but crashes with visual c++
    try{
    foo();
    }
    catch(exception& e){
    emit errorCaught("error caught: "+e.what());
    }
    @

    Edit: please use @ tags around code sections; Andre

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jh224
      wrote on last edited by
      #2

      Never Mind, I found the problem.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        [quote author="jh224" date="1348490402"]Never Mind, I found the problem. [/quote]

        Do you mind sharing your findings?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved