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. Error -1073741819
Forum Updated to NodeBB v4.3 + New Features

Error -1073741819

Scheduled Pinned Locked Moved General and Desktop
34 Posts 3 Posters 15.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.
  • D Offline
    D Offline
    dwsld
    wrote on last edited by
    #18

    http://postimage.org/image/lypykxatz/

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #19

      [quote author="dwsld" date="1363522510"]http://postimage.org/image/lypykxatz/[/quote]
      So what happens in the "main_win.cpp" at line 131, which I guess is the only code of yours?

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dwsld
        wrote on last edited by
        #20

        As i said this is not my code this is from one example - analog clock

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MuldeR
          wrote on last edited by
          #21

          Okay, let's call it the "application" code then. As opposed to the Qt "library" code. Better ???

          If so, would you be so kind and show us the "problematic" application code, i.e. the last line/call in the application code that is executed, before it goes into the Qt library code and eventually crashes there?

          My OpenSource software at: http://muldersoft.com/

          Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

          Go visit the coop: http://youtu.be/Jay...

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dwsld
            wrote on last edited by
            #22

            The program crash before reach the main function.I have deleted everything in it and still crashes .

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MuldeR
              wrote on last edited by
              #23

              Crash before the reaching the "main" function? That would indicate there is something seriously wrong with your build environment, probably not related to Qt all. But very hard to diagnose from here...

              BTW: Are you really 100% sure that, after you "deleted everything", you re-compiled the program, it successfully compiled (i.e. a new EXE file has been created) and you executed the new EXE file?

              --

              Also, what you describe now, is inconsistent with the stack trace you posted earlier, because there it obviously did reach the WinMain function. It even executed some code in "main_win.cpp", before it crashed...

              My OpenSource software at: http://muldersoft.com/

              Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

              Go visit the coop: http://youtu.be/Jay...

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dwsld
                wrote on last edited by
                #24

                Yes I have deleted the exe file and compiled it again but no change . From the beginning I thought that the problem is in the build environment how to resolve the problem?

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MuldeR
                  wrote on last edited by
                  #25

                  Hard to diagnose from here. But I would suggest: Create a very simple "hello world" program from the scratch. Do not add any Qt specific code or includes at all. Just keep it as simple as possible. If even that doesn't work, then I'd completely un-install the build environment and setup a new "clean" build environment...

                  My OpenSource software at: http://muldersoft.com/

                  Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                  Go visit the coop: http://youtu.be/Jay...

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dwsld
                    wrote on last edited by
                    #26

                    Well the problem is in rasterwindow.h
                    because when I compile this:
                    @#include <iostream>

                    using namespace std;
                    int main(int argc, char **argv)
                    {

                    cout << "aa";
                    

                    return 0;
                    }
                    @
                    there is no problem but when i compile this :
                    @
                    #include <iostream>
                    #include <rasterwindow.h>
                    using namespace std;
                    int main(int argc, char **argv)
                    {

                    cout << "aa";
                    

                    return 0;
                    }

                    @
                    The error occurs.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MuldeR
                      wrote on last edited by
                      #27

                      Well, "rasterwindow.h" is not a standard Qt library header file, I think.

                      It's probably a file from one of the various Qt example programs. If so, and if including that file alone triggers your problem, you should look into that file and see what it actually is doing. Then, try to strip it down until you have found what exactly causes the problem.

                      Once again: If you encounter crashes, the stack trace probably is your best tool to get answers...

                      My OpenSource software at: http://muldersoft.com/

                      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                      Go visit the coop: http://youtu.be/Jay...

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SetBetterPass
                        wrote on last edited by
                        #28

                        At first you showed basic qt project code without changes and now you talk about analog clock example in qt... I am confused, what code is the error related to?

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dwsld
                          wrote on last edited by
                          #29

                          Well in the basic projec when I remove #include "mainwindow.h" the error disappears

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SetBetterPass
                            wrote on last edited by
                            #30

                            I don't really understand how it can run without mainwindow.h included...
                            How can compiler know what MainWindow is if you don't include header with its class?
                            Maybe...isn't there class with same name in ui_mainwindow.h? It shouldn't be but I don't see how can you compile it without mainwindow.h.

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              MuldeR
                              wrote on last edited by
                              #31

                              It's at least possible that the file has a global auto object. This object would then be instantiated as soon as the file gets included. And, as a global object (not pointer!), it would be instantiated even before the "main" method. So if it crashed during object initialization for whatever reason, that could explain it...

                              (We still wouldn't know why it crashes in the object initialization code, that's another mystery)

                              My OpenSource software at: http://muldersoft.com/

                              Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                              Go visit the coop: http://youtu.be/Jay...

                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                dwsld
                                wrote on last edited by
                                #32

                                [quote author="SetBetterPass" date="1363537117"]I don't really understand how it can run without mainwindow.h included...
                                How can compiler know what MainWindow is if you don't include header with its class?
                                Maybe...isn't there class with same name in ui_mainwindow.h? It shouldn't be but I don't see how can you compile it without mainwindow.h.[/quote]

                                Very simple I delete evrething in main.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SetBetterPass
                                  wrote on last edited by
                                  #33

                                  If you delete everything that doesn't solve your problem, you have no ui this way. It just tells us problem might be in mainwindow.h or mainwindow.cpp, or even somewhere else.
                                  You can try make another project same way you did before if you get similar error. If so it may be qt related problem but I still think it's problem in your code.
                                  And one more question, are you 100% sure you posted each line of your code here?

                                  1 Reply Last reply
                                  0
                                  • D Offline
                                    D Offline
                                    dwsld
                                    wrote on last edited by
                                    #34

                                    Yes I am 100% sure

                                    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