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. Unhandled Exceptions with Magick++

Unhandled Exceptions with Magick++

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 340 Views
  • 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.
  • S Offline
    S Offline
    scrand
    wrote on last edited by
    #1

    I have a project that does some image manipulations using ImageMagick's Magick++ libraries. It works flawlessly under Linux. But when I port it to Windows, it crashes. Stepping through the execution, everything works fine until the first time I call to a Magick++ method. That's when the program crashes, and C Runtime Library gives me an unhandled exception.

    I thought maybe there was some name mangling with the binary distribution libs, so I tried installing from source. I compiled with the same compiler (Visual C++ 2017) that I use to compile my application. The standalone executables (compiled at the same time) that do the same things (e.g., convert and montage) work fine. Any ideas what I'm doing wrong with the libraries?

    jsulmJ 1 Reply Last reply
    0
    • S scrand

      I have a project that does some image manipulations using ImageMagick's Magick++ libraries. It works flawlessly under Linux. But when I port it to Windows, it crashes. Stepping through the execution, everything works fine until the first time I call to a Magick++ method. That's when the program crashes, and C Runtime Library gives me an unhandled exception.

      I thought maybe there was some name mangling with the binary distribution libs, so I tried installing from source. I compiled with the same compiler (Visual C++ 2017) that I use to compile my application. The standalone executables (compiled at the same time) that do the same things (e.g., convert and montage) work fine. Any ideas what I'm doing wrong with the libraries?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @scrand Is there more information about this unhandled exception?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        scrand
        wrote on last edited by
        #3

        On my debug build, when I try to use the overloaded Magick::Image(std::string) assignment operator to load the image from a filename, I get "The inferior stopped because it triggered an exception. Stopped in thread 0 by: Exception at [address], code: 0x06d7363: C++ exception, flags = 0x1 (execution cannot be continued).

        But I guess resolved now? I just somehow got a non-debug build to work, even though it used to crash. I'm not even sure if it's using the binary or the source distribution (I have both on my system). But it works. The debug build still crashes, but I don't need to debug any of my usage of ImageMagick, so I guess I'll take what I can get. Thanks!

        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