Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: The program exiting with code -1073741515  (Read 11433 times)

0 Members and 1 Guest are viewing this topic.

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
The program exiting with code -1073741515
« on: September 30, 2014, 06:42:06 pm »
I have the trouble. My OS is windows7 x64, trying to get my SFML WD (for gcc 4.7.0) working
But it doesn't. Simple code
#include <iostream>
#include <conio.h>
#include <SFML/Graphics.hpp>
using namespace std;

int main()
{

 sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Hello World - SFML");
    return 0;
}
 

And
Project1\build-untitled-Desktop_Qt_5_3_MinGW_32bit-Debug\debug\untitled.exe exited with code -1073741515

What's wrong? Can show my .pro file too.
TEMPLATE = app
CONFIG -= app_bundle
CONFIG -= qt

SOURCES += main.cpp

include(deployment.pri)
qtcAddDeployment()

#SFML library
LIBS += -LD:\QTcreator\Tools\SFML-2.1\lib
 
CONFIG(release, debug|release): LIBS += -lsfml-audio -lsfml-graphics -lsfml-main -lsfml-network -lsfml-window -lsfml-system -DSFML_STATIC
CONFIG(debug, debug|release): LIBS += -lsfml-audio-d -lsfml-graphics-d -lsfml-main-d -lsfml-network-d -lsfml-window-d -lsfml-system-d -DSFML_STATIC
 
INCLUDEPATH += D:\QTcreator\Tools\SFML-2.1\include
DEPENDPATH += D:\QTcreator\Tools\SFML-2.1\include
Can anyone help me?
Infinite insomnia.

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #1 on: September 30, 2014, 06:49:14 pm »
Infinite insomnia.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: The program exiting with code -1073741515
« Reply #2 on: September 30, 2014, 07:09:17 pm »
What's the problem?

That code creates a window and destroys it immediately. Have a look at the tutorials to learn how to keep a SFML window open.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #3 on: September 30, 2014, 07:12:15 pm »
What's the problem?

That code creates a window and destroys it immediately. Have a look at the tutorials to learn how to keep a SFML window open.
You mean, there's no problem?
Found this code on the wiki
#include <SFML/Graphics.hpp>

using namespace std;

int main()
{
    // Create the main window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Hello World - SFML");

    // Start the main loop
    while (App.isOpen())
    {
        // Process events
        sf::Event Event;
        while (App.pollEvent(Event))
        {
            // Close window : exit
            if (Event.type == sf::Event::Closed)
                App.close();
        }
        // Clear screen, and fill it with blue
        App.clear(sf::Color::Blue);

        // Display the content of the window on screen
        App.display();
    }
    return 0;
}
 
The same exit with code.
You still think it's code trouble?
Infinite insomnia.

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: The program exiting with code -1073741515
« Reply #4 on: September 30, 2014, 08:27:26 pm »
Tried reading this?

Looks like you may have a "double MinGW installation". Try properly removing the old one (the one before you installed qt).

This information was found by googling "exited with code -1073741515"  >:(
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #5 on: September 30, 2014, 09:06:17 pm »
Tried reading this?

Looks like you may have a "double MinGW installation". Try properly removing the old one (the one before you installed qt).

This information was found by googling "exited with code -1073741515"  >:(
I have 4.8.2 that came with installed QTcreator, and second one installed manually(4.7.0)
But had this problem even with only one mingw.
Infinite insomnia.

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #6 on: September 30, 2014, 09:14:20 pm »
Btw, does anybody work with SFML in QTcreator? I have heard it works awkwardly with qtcreator.
Infinite insomnia.

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #7 on: September 30, 2014, 09:22:20 pm »
Why would a library (any library) work "awkwardly" with any specific IDE?
Regardless of whether you use Visual Studio project files, SCons, CMake, QMake or plain old make files, when you do a build you eventually call out to a compiler (and no, the IDE is not the compiler) and need to tell it things like where to find includes and where to find libraries. How you configure that is obviously different depending on your build system, but should be pretty identical from library to library. Your IDE may present an interface to do that configuration (or it may not) but again it shouldn't be any different for SFML than any other library.

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #8 on: September 30, 2014, 09:24:45 pm »
I know QTcreator is only IDE.
Still i am too stupid to make it work in QTcreator. Damnit, tried everything.
Infinite insomnia.

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #9 on: September 30, 2014, 09:56:00 pm »
Used this guide.
Can't understand 6 step. Don't have any of C:\QtSDK\mingw\bin;C:\qtsdk\qt\bin; or similar to them in any path
Now i am reinstalling the QT and wanna try to do everything accordingly to this guide once more
Infinite insomnia.

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: The program exiting with code -1073741515
« Reply #10 on: September 30, 2014, 10:20:14 pm »
Used this guide.
Here is that link fixed.

Can't understand 6 step. Don't have any of C:\QtSDK\mingw\bin;C:\qtsdk\qt\bin; or similar to them in any path
In step 6, it says insert that, not that it should be there already.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #11 on: September 30, 2014, 10:31:14 pm »
4.8.2 mingw is compatible with sfml? Cuz i am trying to get 4.7.0 to make it work.
Maybe i am doing extra motions?
Infinite insomnia.

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #12 on: September 30, 2014, 10:38:45 pm »
I use SFML with GCC 4.8.2 on RedHat 6.5 (via devtoolsets2) and it works fine. So the answer to that question would be "yes".

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: The program exiting with code -1073741515
« Reply #13 on: September 30, 2014, 10:46:30 pm »
I use SFML with GCC 4.8.2 on RedHat 6.5 (via devtoolsets2) and it works fine. So the answer to that question would be "yes".
I would assume that you're using the latest github version and I would also assume that Vladkomarr is using the 2.1 pre-built version (which is for 4.7 and probably why they're trying to use that).

Vladkomarr, have you tried to build yourself SFML from the latest source? If you're uncomfortable with building, you could try downloading a pre-built version from Nightly Builds.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

fakepotato

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • Email
Re: The program exiting with code -1073741515
« Reply #14 on: September 30, 2014, 11:11:40 pm »
Yup, tried to cmake it twice. Same exiting code.
Btw, if i remove the IDE with maintenance tool, that means i delete the compiler mingw from system too? Cuz the guy above said that this exiting code means i have double mingw installation. So i ll try reinstalling qtcreator  :-X
Infinite insomnia.