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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KruSuPhy

Pages: [1]
1
General / Re: unknown project crash?
« on: August 24, 2013, 10:05:24 pm »
I mean, yeah, I'll try it. It just doesn't make any since because I didn't have any problems on my other project.

2
General / Re: unknown project crash?
« on: August 24, 2013, 06:11:03 pm »
but i'm supposed to use the version that matches the file that I have in my MinGW/bin folder, right? I don't have the SLJL file in there, it's the libgcc_s_dw2-1.dll. Should I download the SLJL version anyway?

3
General / Re: unknown project crash?
« on: August 24, 2013, 06:19:15 am »
bumpppp. still having the same problem. any ideas?  :-\

4
General / Re: unknown project crash?
« on: August 15, 2013, 04:23:08 am »
no, i've got the libgcc_s_dw2-1.dll in my MinGW/bin.

i dunno. i had another project that i was following the tutorial on and it was working fine. i just decided to start a new one to see if i could remember how to do it all. and i checked my code and stuff, it looked right to me. so i'm not sure why it just randomly doesn't want to work.

EDIT: Okay, so i'm able to recreate the error. I erased all of my files in the same project and wrote this:
Code: [Select]
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>

int main()
{
    sf::Window window(sf::VideoMode(800,600), "Window");

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

        window.display();
    }

    return 0;
}

and this works fine. i mean, it's just a blank window, but it works fine.

However, when I changed it to sf::RenderWindow and added window.clear();, as such:
Code: [Select]
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(800,600), "Window");

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

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

    return 0;
}
the same "blah blah has stopped working" error happens. I don't know if that helps at all, honestly, but I figured i'd try something and it ended up just giving me the same error.

5
General / Re: unknown project crash?
« on: August 13, 2013, 11:14:48 pm »
I downloaded GCC 4.7 MinGW (DW2) - 32 bits.

6
General / Re: unknown project crash?
« on: August 13, 2013, 11:11:30 am »
GNU GCC Compiler(C::B Default), Windows 8, and SFML 2.1. The thing is, it was working fine earlier. There's some sort of problem with window.clear(); because I commented it out and the program worked. It's got some problem with the clear, i guess.

And thanks for the tip about the font!

7
General / unknown project crash?
« on: August 13, 2013, 10:20:57 am »
This keeps crashing for some reason, and I can't figure out why. I keep getting the "so-and-so.exe has stopped working" error.
        int maxTilesX = 24;
        int maxTilesY = 12;
        sf::RenderWindow window(sf::VideoMode(maxTilesX * 32, maxTilesY * 32), "Game");

        while (window.isOpen())
        {
            sf::Event event;

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

            sf::Font font;
            sf::Text text;
            if (!font.loadFromFile("arial.ttf"))
            {

            }

            text.setFont(font);
            text.setCharacterSize(24);
            text.setColor(sf::Color::Black);
            text.setString("Hello World!");

            window.clear(sf::Color::White);
            window.draw(text);
            window.display();


        }

        return 0;

Pages: [1]
anything