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

Pages: [1]
1
DotNet / ATI Graphic Card Issue
« on: January 25, 2011, 04:15:06 am »
Quote from: "Laurent"
Quote
is the ATI issue resolved in sfml 1.6?

Nop.


Gah, I thought that the issue was only in SFML 2.0. In that case, add me to the list of people asking for a quick and dirty fix.

2
DotNet / ATI Graphic Card Issue
« on: January 22, 2011, 06:53:02 pm »
Good thing that I decided to stick with SFML 1.6 for my project...

3
DotNet / PInvoke Stack Imbalance
« on: July 06, 2010, 04:34:42 am »
Ah, I was using 1.6. I guess the latest 2.0 is stable? And if not, can I safely disable the warning?

4
DotNet / PInvoke Stack Imbalance
« on: July 05, 2010, 04:35:37 am »
Hey, I'm trying to get SFML set up with Visual C# 2010. I'm getting this warning when I run some simple test code:

Quote
A call to PInvoke function 'sfmlnet-graphics!SFML.Graphics.RenderWindow::sfRenderWindow_Create' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.


Here's the code, it's adapted from the example in the SFML dotnet documentation:

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);

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

                // Clear screen
                app.Clear();

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



If I turn off MDA warnings then everything runs fine, but I'm thinking that a stack imbalance is serious and that I should look into it. Any ideas?

Pages: [1]
anything