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

Pages: [1]
1
DotNet / Crash on exit when using String2D
« on: December 05, 2010, 10:24:48 pm »
I just tried it out and it works fine. Thanks for the help!

2
DotNet / Crash on exit when using String2D
« on: December 05, 2010, 03:13:27 pm »
Can I use SFML 2 with .NET 2.0 and VS2005?

3
DotNet / Crash on exit when using String2D
« on: December 05, 2010, 12:14:36 am »
Here's the full code, taken from the documentation sample:

Code: [Select]
using System;
using SFML.Audio;
using SFML.Window;
using SFML.Graphics;

namespace Example
{
    class Program
    {
        static void OnClose(object sender, EventArgs e)
        {
            // Close the window when OnClose event is received
            RenderWindow window = (RenderWindow)sender;
            window.Close();
        }

        static void Main(string[] args)
        {
            // Create the main window
            RenderWindow app = new RenderWindow(new VideoMode(800, 600), "SFML window");
            app.Closed += new EventHandler(OnClose);

            // Create a graphical string to display
            Font arial = new Font("arial.ttf");
            String2D text = new String2D("Hello SFML.Net", arial);

            // Start the game loop
            while (app.IsOpened())
            {
                // Process events
                app.DispatchEvents();

                // Clear screen
                app.Clear();;

                // Draw the string
                app.Draw(text);

                // Update the window
                app.Display();
            }
        }
    }
}


Naturally, I've put arial.ttf in the right place for it to work.

4
DotNet / Crash on exit when using String2D
« on: December 04, 2010, 11:39:27 pm »
I get the same crash even if I don't use the default font.

5
DotNet / Crash on exit when using String2D
« on: December 04, 2010, 11:08:20 pm »
Anything I write with SFML.NET 1.6 crashes on exit ('vshost.exe has stopped working' on Windows 7 and 'memory could not be read' on XP) if I create an instance of String2D at some point in the program, even in the sample included with the documentation. This problem also occurs when I do not draw the String2D to the screen, but only create it. I am using VS2005, and have added the csml-***.dll files under extlibs to bin\Debug and bin\Release, and added references to the .NET assemblies lib\sfml-***.dll.

Any ideas what might be going on? And, if not, are there any alternatives to String2D I could use?

Pages: [1]
anything