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

Pages: [1] 2
1
Window / x64 - GetEvent crash
« on: December 10, 2011, 02:44:11 pm »
Ah, I see.

Well I guess I rly should start to upgrade to SFML 2 soon.

2
General / Precompiled SFML 1.6 for 64 Bit Windows
« on: December 10, 2011, 12:08:11 am »
Solved my compilation issues. The 64 bit OpenAL can be found by downloading the OpenAL SDK installer.

3
Window / x64 - GetEvent crash
« on: December 09, 2011, 11:26:15 pm »
Hey Laurent.

I found the problem

In WindowImplWin32.cpp

Code: [Select]
       // Get WindowImplWin32 instance (it was passed as the last argument of CreateWindow)
        longThis = reinterpret_cast<long>(reinterpret_cast<CREATESTRUCT*>(LParam)->lpCreateParams);


That is wrong, since long is 32 bit on x64 but pointers are 64 bit.

You should change it to:

 
Code: [Select]
      LONG_PTR This = reinterpret_cast<LONG_PTR>(reinterpret_cast<CREATESTRUCT*>(LParam)->lpCreateParams);

After changing this it works fine.

I noticed this problem migth occur in a few other places, e.g. the first constructor. with SetWindowLongPtr?

4
Window / x64 - GetEvent crash
« on: December 09, 2011, 10:20:18 pm »
I have an application that works well in 32 bit, however I'm having some problems with 64 bit.

The GetEvent method seems to crash my application.

I have compiled SFML 1.6 as a static library for x64 with /MDd.

I have traced the problem down to the very first call of GetEvent and then deeper into the code:

Code: [Select]
void WindowImplWin32::ProcessEvents()
{
    // We update the window only if we own it
    if (!myCallback)
    {
        MSG Message;
        while (PeekMessage(&Message, NULL, 0, 0, PM_REMOVE))
        {
            TranslateMessage(&Message);
            DispatchMessage(&Message); // access-violation
        }
    }
}


Where Message has the following values:

message = 799
wParam = 1
lParam = 0
time = 25335545
pt = {x=611, y=411}

Any ideas what could cause this our how to debug it?

If I just skip the GetEvent calls the application runs fine and the window is rendered, but it of course wont respond to any interaction.

EDIT:

On second thought this should proably go into the "Window" forum.

5
General / Precompiled SFML 1.6 for 64 Bit Windows
« on: December 09, 2011, 10:07:17 pm »
I found and managed to compile freetype as required However, openal still remains a mystery.

6
General / Precompiled SFML 1.6 for 64 Bit Windows
« on: December 09, 2011, 07:31:48 pm »
I'm having trouble building Debug DLL using the solution found in ingwiks link. I get link error towards opengl and freetype. Any ideas how to fix it?

http://pastebin.com/vrntBigQ

7
Graphics / Windowless OGL Context with Stencil Buffer
« on: January 20, 2011, 08:48:25 pm »
How do i create a windowless OGL context with stencil buffer with SFML 1.6?

8
Audio / Change OpenAL Device
« on: January 16, 2011, 01:01:08 pm »
I'm using SFML 1.6 in my project and I would like to be able to choose which output device should be used by sf::SoundStream.

As SFML 1.6 doesnät seem to support this I'm wondering if there is a way that I can change the the active al device to one I have created through something like alcMakeContextCurrent.

Is this possible? And if so I'd appreciate some tips on how to go about it.

9
SFML wiki / [Sources] Video Integration with ffmpeg (Updated: 1.03)
« on: November 02, 2010, 12:05:44 am »
Suggestion. If you use PIX_FMT_RGBA in sws_getContext (and other parts)  you can avoid the copy in UpdateImage.

10
Graphics / OpenGL with no or hidden window
« on: September 21, 2010, 12:46:00 am »
EDIT: Solved, I'm just overthinking things.

Thanks for the help.

11
Graphics / OpenGL with no or hidden window
« on: September 21, 2010, 12:33:09 am »
Thanks. Almost there.

One last problem. How do I swap buffers using the context? It seems to create a dummy window in the background. However it is a private member and I cannot call Display on it.

12
Graphics / OpenGL with no or hidden window
« on: September 20, 2010, 10:38:34 pm »
And if the main is unavailable... how do I add an ogl context to a new thread without creating a window?

13
Graphics / OpenGL with no or hidden window
« on: September 20, 2010, 09:54:01 pm »
I'm using SMFL to do some gpgpu computing... which doesnt require a window however a ogl context is still needed.

In what ways can I run OpenGL SFML with no or someway hidden window?

14
Audio / Audio streaming problems
« on: September 05, 2010, 12:10:19 pm »
Wouldn't it be better if the Sleep time depended on the sample rate. Instead of a fixed value.

15
Audio / Audio streaming problems
« on: September 05, 2010, 11:57:58 am »
I can modify 1.6. I'm working on a business critical application and would prefer to keep using 1.6 while 2.0 is maturing.

Could you send me the required changes?

Thank you.

EDIT:

Found it on SVN. Thx.

Pages: [1] 2
anything