Results 1 to 1 of 1

Thread: [solved]jom exit with code 2 without any errors.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default [solved]jom exit with code 2 without any errors.

    On my system I can compile and run any project successfully. Except the one I am working on. Since it is giving absolutely no errors, I cannot find where in to look. The last big piece of change I did before the project stopped compiling and running, was to introduce QSharedPointer<QScriptEngine>. QScriptEngine is forward declared where I declare QSharedPointer<QScriptEngine>. It raises the warning as expected:
    C4150: deletion of pointer to complete type QScriptEngine; no destructor called.
    Since QScriptEngine is forward declared, it is expected. Compiler doesn't know about class and is cribbing by giving a warning.
    There is nothing more other than this.
    I tried usual clean, rebuild, delete pro.user file, etc. making sure Clear System environment is unchecked etc.
    Any idea where I should begin investigating??!!

    -----------------------------
    Ok. I have found the problem. It is kind of stupid. As it is almost always with these type of errors.
    While introducing
    Qt Code:
    1. public slots:
    2. void someFunction()
    To copy to clipboard, switch view to plain text mode 
    I forgot to write public: for the data under!!!
    Last edited by pkj; 7th September 2012 at 09:13. Reason: [solved]

Similar Threads

  1. Replies: 1
    Last Post: 13th September 2011, 09:56
  2. How to make fewer errors at the stage of code writing. Part N3. QT.
    By Andrey_Karpov in forum General Discussion
    Replies: 0
    Last Post: 13th July 2011, 07:39
  3. Exit Code 3
    By RSX in forum Newbie
    Replies: 4
    Last Post: 11th March 2011, 00:44
  4. Is there a guide for exit code messages?
    By tonnot in forum Newbie
    Replies: 13
    Last Post: 9th December 2010, 10:45

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.