Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. QT and OpenCascade
Forum Updated to NodeBB v4.3 + New Features

QT and OpenCascade

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
6 Posts 3 Posters 2.4k 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
    JRomero
    wrote on last edited by
    #1

    Hello everyone, I'm using QT and the CAD libraries OpenCascade. I'm working on a visualizer but when I run the code the application output shows "The program has unexpectely finished. The process was ended forcefully." even though there are no errors in the code. Then I run the debugger and a popup appears showing "The CDB process terminated" I'm working on Windows 10, the kit is Visual Studio 2019 and qt 5.15.0. What could the problem be? Thanks

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Like here?
      https://forum.qt.io/topic/69130/unexpected-cdb-exit

      When you run the the app in non debug, it never starts but crashes at once ?
      It could be you need some OpenCascade dlls in build folder or
      add path to the fodler wher eit can find it in Projects - environment
      alt text

      J 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Like here?
        https://forum.qt.io/topic/69130/unexpected-cdb-exit

        When you run the the app in non debug, it never starts but crashes at once ?
        It could be you need some OpenCascade dlls in build folder or
        add path to the fodler wher eit can find it in Projects - environment
        alt text

        J Offline
        J Offline
        JRomero
        wrote on last edited by
        #3

        Hi @mrjj, yes, it happens just like in the link and it crashes in non debug run, I added the bin location of OpenCascade to the "Path" variable in System Environment but it doesn't work. Do I have to create another variable for the dlls or what else can I do? Thanks

        mrjjM 1 Reply Last reply
        0
        • J JRomero

          Hi @mrjj, yes, it happens just like in the link and it crashes in non debug run, I added the bin location of OpenCascade to the "Path" variable in System Environment but it doesn't work. Do I have to create another variable for the dlls or what else can I do? Thanks

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @JRomero
          Hi
          No that should be it.

          When it crash from very start its off DLL related.

          Are you sure whatever OpenCascade DLLs you are using are for the compiler you are using for the app?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MScholli01
            wrote on last edited by MScholli01
            #5

            I have the exact same problem, also on Windows with VS19. Using Qt6.
            I've compiled Opencascade 7.5.0 from sources to make sure it is compatible with VS19.

            The path to the dll's is specified, but it crashes immediately on execution. Can't debug because the debugger crashes.
            It crashes as soon as I include an Opencascade header file without using anything else from Opencascade.
            Any ideas how to resolve this? Thank you!

            M 1 Reply Last reply
            0
            • M MScholli01

              I have the exact same problem, also on Windows with VS19. Using Qt6.
              I've compiled Opencascade 7.5.0 from sources to make sure it is compatible with VS19.

              The path to the dll's is specified, but it crashes immediately on execution. Can't debug because the debugger crashes.
              It crashes as soon as I include an Opencascade header file without using anything else from Opencascade.
              Any ideas how to resolve this? Thank you!

              M Offline
              M Offline
              MScholli01
              wrote on last edited by
              #6

              Replying to myself, in case someone else has this problem in the future.
              I've started the VS debugger from the command line, thanks to the tip from SO

              devenv /debugexe 'program name' 'program arguments'
              

              Executing the app from within Visual Studio gave error messages that freetype.dll and FreeImage.dll were missing. After adjusting the PATH variable to point to those dll's, everything works now.

              1 Reply Last reply
              4

              • Login

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