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 - Fedcomp

Pages: [1]
1
Graphics / Drawing grid 16x16 all over the window?
« on: November 08, 2013, 09:39:21 pm »
Searching a bit, i found discussions on this forums how to make a line.
I tryed to use new knowledge to make a grid 16x16 with the size of the main window but failed with segfault.
How to draw 16x16 grid of the size of main window?

2
Graphics / Re: Crash on font.loadFromFile()
« on: November 08, 2013, 05:46:35 pm »
You never said that, you've always just referred to debug and release mode, which is something else than using debug and release libraries.
From your description I'm still not sure whether you've fully understood the difference, especially since you've now started mixing states.
I dont mix the states, when i run release mode and haven't build release libraries cmake show me error,
because cmake find_file with your module can't find appropriate libs.
So no, cmake find_file searching for appropriate libs.

I hope you looked at the advanced options, because CMake doesn't always do what one wishes it would. ;)
Advanced options is inspecting find_file myself? already done, i spen't quite some time setting build environment,
and figuring out how to build SFML. Glad such nice framework exist, i hate dealing with SDL, it's pointers etc.

P.S. Topic can be closed, the error was in small piece of code working with Vector lines, i didn't paid enough attention to that lines.
Sorry for inconvenience, everything is working.

P.P.S. but why GDB fix problems with pointers?

3
Graphics / Re: Crash on font.loadFromFile()
« on: November 06, 2013, 03:02:37 pm »
As i already said, it doesn't matter what kind of binaries i use. Fonts start working when i run project using codeblocks debug, and when running using windows explorer or just in release mode using codeblocks they crash the application.
Not to say cmake find_files finding appropriate libs to link (with correct suffixes).
It's more of an issue "why it works under gdb and not works when run without it".

4
Graphics / Crash on font.loadFromFile()
« on: November 06, 2013, 09:37:35 am »
Hello sfml forums!

When i try to use font.loadFromFile() with correct/incorrect path in release configuration it crashes the application.
Example code:
int Game::Run(){
// ...
                sf::Font font;
                font.loadFromFile("arial.ttf");
// gameloop
}

BUT! it only happens in release mode! Not even message like "cannot load the font %font name%". When i using debug configuration _everything_ works fine, i can display text, i can use my own custom font etc. Even if i only add thoose two lines (the code above) and not using them, it still crash the game, for some reason sf::font crashes the application in release mode during loadFromFile().
In release configuration drawing sprites and camera and keyboard is working, so i guess everything else is working correct except Font. I have googled a bit and found that sfml font had issues with crash before, but it seems has been fixed. However it happens with me.

OS: Windows 7 x64
Compiler: Cmake + Mingw
SFML: version 2, statically linked to the project.
IDE: Codeblocks project made by cmake.
All software - mingw,code::blocks,cmake,sfml is freshly downloaded 3-6 days ago (in case with sfml is SFML Sources on download page)

If i compile SFML in debug or release configuration, nothing is changing. I haven't tryed to dynamically link sfml libs, but i think if everything else is working, and even font is working in debug configuration, it's not an issue.

Pages: [1]