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. [Moved] "exited with code 0" error
QtWS25 Last Chance

[Moved] "exited with code 0" error

Scheduled Pinned Locked Moved General and Desktop
21 Posts 5 Posters 9.8k 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.
  • R Offline
    R Offline
    Rahul Das
    wrote on 12 Dec 2011, 15:54 last edited by
    #10

    I must assume that, you are using Qt Mobility , and some part of your code doesn't work. i could try to help you if you share more details or code.


    Declaration of (Platform) independence.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on 12 Dec 2011, 15:58 last edited by
      #11

      sorry, my previous post wasn't timely.pls Ignore it.


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kuheylan
        wrote on 12 Dec 2011, 15:58 last edited by
        #12

        Thank you so much.
        I am using OQ creator and this project is console app. I am sending my .pro file.
        @#-------------------------------------------------

        Project created by QtCreator 2011-12-12T12:18:39

        #-------------------------------------------------

        QT += core

        QT -= gui

        TARGET = calisma1
        CONFIG += console
        CONFIG -= app_bundle

        TEMPLATE = app

        SOURCES += main.cpp

        INCLUDEPATH +=C:/opencvbuild/install/include/opencv
        INCLUDEPATH +=C:/opencvbuild/install/include/opencv2/highgui
        INCLUDEPATH +=C:/opencvbuild/install/include

        LIBS += C:/opencvbuild/install/bin/*.dll

        HEADERS +=
        main.h

        @

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kuheylan
          wrote on 12 Dec 2011, 16:18 last edited by
          #13

          anybody help me. it is very important for me

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kuheylan
            wrote on 12 Dec 2011, 16:55 last edited by
            #14

            when this .cpp file is written in console app. , it gives "exited with code 0" message. But when this .cpp file is written in empty file , it gives "exited with code -1073741511" message. why!!

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Rahul Das
              wrote on 12 Dec 2011, 17:30 last edited by
              #15

              Frankly, i don't know much about openCV. Anyway, exited with 0 is the result of @ return 0;@ in your main(). And That means ,successful completion of the execution.

              And what does Qt do in your application ?

              EDIT : Just noticed : in your pro file, @LIBS += C:/opencvbuild/install/bin/*.dll@ I am bit doubtful about this part. I am not sure,wildcard can be used in here.


              Declaration of (Platform) independence.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kuheylan
                wrote on 12 Dec 2011, 17:37 last edited by
                #16

                in console application! ...

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Rahul Das
                  wrote on 12 Dec 2011, 17:40 last edited by
                  #17

                  yes, i know its a console application. But this is not really a Qt application right? i mean,Not a Qt-console application. I couldn't find usage of Qt APIs anywhere in codes

                  [quote author="kuheylan" date="1323711448"]in console application! ...[/quote]


                  Declaration of (Platform) independence.

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kuheylan
                    wrote on 12 Dec 2011, 17:44 last edited by
                    #18

                    But my friend used this code in qt and he says that it runs and camera runs. you are right it is not really a qt app. I found it

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on 12 Dec 2011, 17:45 last edited by
                      #19

                      Please kuheylan, calm down a bit. Don't flag your message as urgent, even if it is for you. It is hard for people to guess what is going wrong in your code, especially if they don't see it.

                      Your code does not look like real Qt code to me. Normally, Qt code creates a Q(Core)Application, calls exec() on that, and only exits when the eventloop is terminated. You are just creating a loop of your own, and I fail to see the connection between Qt and your code. Your code doesn't use a single Qt class. Perhaps you should ask your question in an OpenCV channel?

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        andre
                        wrote on 12 Dec 2011, 17:48 last edited by
                        #20

                        [quote author="kuheylan" date="1323711840"]But my friend used this code in qt and he says that it runs and camera runs. you are right it is not really a qt app. I found it[/quote]

                        So... It is not even your code, but something you found off the net and your friend states works, and now you expect us to support it and help you figure out what it is doing? Sorry, it doesn't work like that. Please do your own homework.

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          goetz
                          wrote on 12 Dec 2011, 17:55 last edited by
                          #21

                          Moved to the General forum, this seems to be the least inappropriate one for this.

                          http://www.catb.org/~esr/faqs/smart-questions.html

                          1 Reply Last reply
                          0

                          19/21

                          12 Dec 2011, 17:45

                          • Login

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