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

Author Topic: [SOLVED] Process terminated with status -1073741819 (0 minutes, 0 seconds) !!  (Read 30902 times)

0 Members and 2 Guests are viewing this topic.

Atifhossain

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
I downloaded SFML with this tutorial : http://www.sfml-dev.org/tutorials/2.0/start-cb.php

I recently downloaded SFML 2.0 RC from here  : http://www.sfml-dev.org/download.php. I dloaded this one
C++ | Version 2.0 RC >>  Windows 32 bits - GCC DW2 (11.5 MB).

I did all that was written in the tutorial. I used the dynamic version of SFML and moved all the required dlls. Created an empty project and entered this code in main.cpp
By the way, I use Code::Blocks IDE. I did not install C::B with the MinGW compiler.

Code: [Select]

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}



Here's the build message :

-------------- Build: Debug in SFMLtest (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall  -g    -ID:\Atif\SFML\SFML-2.0-rc\include -IC:\MinGW\include  -c D:\Atif\SFMLtest\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -LD:\Atif\SFML\SFML-2.0-rc\lib  -o bin\Debug\SFMLtest.exe obj\Debug\main.o    -lsfml-graphics -lsfml-window -lsfml-system  -mwindows
Output size is 45.25 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings (0 minutes, 1 seconds)


When I Run it , it says :

Checking for existence: D:\Atif\SFMLtest\bin\Debug\SFMLtest.exe
Executing: "D:\Atif\SFMLtest\bin\Debug\SFMLtest.exe"  (in D:\Atif\SFMLtest\.)
Process terminated with status -1073741819 (0 minutes, 0 seconds)


What should I do ?
« Last Edit: March 15, 2013, 08:21:37 am by Atifhossain »

MiNd

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Process terminated with status -1073741819 (0 minutes, 0 seconds) !!
« Reply #1 on: March 14, 2013, 10:49:01 pm »
I am having a very similar problem to this, as well.

I followed the same Code::Blocks tutorial and I'm also using the sample code provided in that tutorial. I've made sure all the compiler and linker settings are correct many many times, yet I still can't get it to run correctly.

The only difference is that I've installed the Windows 32 bits - GCC SJLJ (Code::Blocks) version of C++ SFML 2.0 RC. When I run, the console displays no output and this (http://i.imgur.com/M5UadiF.png) occurs. If I close the program before that error window shows, the program returns with status -1073741819. If I wait and press Close Program, it returns with 255.

I can make a separate thread with more information if necessary, but I'm sure both Atifhossain and I would appreciate some help on this one.
« Last Edit: March 14, 2013, 10:51:39 pm by MiNd »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Process terminated with status -1073741819 (0 minutes, 0 seconds) !!
« Reply #2 on: March 14, 2013, 11:20:18 pm »
If you're both using the latest Code::Blocks + MinGW version, then you'll have to recompile SFML (or use my Nightly Builds), because GCC 4.7.x isn't compatible with the RC binaries.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Atifhossain

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email

 

anything