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

Pages: [1] 2 3 4
1
DotNet / SFML hanging on RenderWindow close.
« on: June 06, 2013, 11:38:47 pm »
I'm testing out SFML in C# and am having a slight problem.  When closing the window, or even just letting the main thread exit, the window itself will close but the program will hang for about 10 seconds before actually closing.  I'd appreciate any solutions.

namespace SFMLNET_Test
{
    class Program
    {
        static void Main(string[] args)
        {
            RenderWindow window = new RenderWindow(new VideoMode(1280, 720), "SFML", Styles.Close);
            window.Close();
        }
    }
}

2
General / Visual Studio 2010 Can't Link!!!
« on: March 23, 2011, 12:31:24 am »
If I'm correct, SFML1.6 doesn't work with VS2010.

If you really want to use SFML with VS2010 you'll have to download SFML2.0 and build the SFML libs/dlls yourself with Cmake.

3
General / Image and Font causes crashes at program exit
« on: March 22, 2011, 02:28:24 am »
No error appears in release or debug mode.  It's just that unhandled exception at program exit.

I tried your suggestion with the same results in debug mode.

Besides, I shouldn't be having the ATI bug because my drivers are on the latest working version that's compatible with SFML (10.10e).

4
General / Image and Font causes crashes at program exit
« on: March 22, 2011, 01:56:47 am »
I've switched back to SFML1.6 and everything works fine.  It's a shame though, I was looking forward to using VS2010. :(

5
General / Image and Font causes crashes at program exit
« on: March 21, 2011, 05:12:49 am »
It's also happening when I create a RenderWindow.  The program runs perfectly fine but I get that unhandled exception when I exit.  Also, I'm not creating the RenderWindow object globally, it's inside main.

Same problem in MSVC08 too...

6
General / Image and Font causes crashes at program exit
« on: March 21, 2011, 03:08:41 am »
Let me start off by giving you some info:
OS: Windows 7
Graphics Driver: ATI CCC 10.10
IDE: VS2010
SFML: SFML2.0

Alright, so I can't seem to globally declare an Image or a Font.

For example, I've got a class with a static vector of Images, Fonts, and SoundBuffers, like so:
Code: [Select]

class DataManager
{
private:
static std::vector<sf::Image> imageData;
static std::vector<sf::SoundBuffer> soundData;
static std::vector<sf::Font> fontData;
};


And of course I'm defining the vectors in DataManager's .cpp file.  The problem is that global Images or Fonts give me an unhandled exception when the program closes then tells me the program crashed in crt0dat.c at line 708:
Code: [Select]

void __cdecl __crtExitProcess (
        int status
        )
{
        __crtCorExitProcess(status);

        /*
         * Either mscoree.dll isn't loaded,
         * or CorExitProcess isn't exported from mscoree.dll,
         * or CorExitProcess returned (should never happen).
         * Just call ExitProcess.
         */

        ExitProcess(status); /* 708 */
}


Declaring a SoundBuffer globally works just fine though.

7
General / SFML won't run in Windows 7 64-bit
« on: January 09, 2011, 01:35:45 am »
Alright, I've reverted back to version 10.10e and I'm pleased to confirm that everything is working properly now.

8
General / SFML won't run in Windows 7 64-bit
« on: January 08, 2011, 12:56:14 am »
Ahh, I do have Catalyst 10.11.  But would this prevent me from just compiling SFML programs?  I can run the precompiled samples just fine.

9
General / SFML won't run in Windows 7 64-bit
« on: January 07, 2011, 10:01:48 pm »
C++.  I'm not compiling the code any differently then what I did on XP, so I'm guessing my IDE is forcing it to compile for x86 seeing as how my configuration is set to compile for Win32.

10
General / SFML won't run in Windows 7 64-bit
« on: January 07, 2011, 09:15:39 pm »
I've just switched from XP 32-bit on to 7 64-bit and can't seem to get my projects to work anymore.  The problem is strange: the code compiles without any errors/warning but the renderwindow doesn't pop up, only the console window (which is frozen, I've tried some couts).

Oh and precompiled SFML samples run just fine.

Any thoughts?

11
General discussions / SFML/OGL graphic differences?
« on: November 07, 2010, 07:32:56 pm »
That's what I thought, thanks. :D

12
General discussions / SFML/OGL graphic differences?
« on: November 07, 2010, 12:51:25 pm »
Alright so, quick question:

The functionality contained in Graphics.hpp is just a high-level interface to OpenGL, correct?

If so, what would be the advantages/disadvantages of using OpenGL instead of SFML's graphics?

13
General / How to share SFML games 'correctly' (DLLs issue)?
« on: November 04, 2010, 04:52:54 am »
Quote from: "Shy Guy"

Btw, when should I provide (or link against) sfml-...-d-Libs, those with the -d?


When you're running in debug mode you use -d.  When you switch to release you have to link to the normal ones (without any suffix).

14
Graphics / Drawing Text with an outline
« on: November 03, 2010, 07:35:27 am »
Well, you could try wrapping two strings inside your own string class.

Make one string slightly larger then the other, and place it behind the smaller one to give an 'outline' effect.

15
General / How to share SFML games 'correctly' (DLLs issue)?
« on: November 03, 2010, 07:14:07 am »
Things you need:

  • The .exe (of course)
  • All of the necessary DLLs.
  • The data (images, sound, etc.)


That's it, no libs required.

Btw, necessary DLLs means libsndfile-1.dll, openal32.dll, and the DLLs associated with the libs you used.  If you used sfml-graphics.lib, then include the sfml-graphics.dll, and so on...

Pages: [1] 2 3 4