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.
Well I guess I rly should start to upgrade to SFML 2 soon.
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.
// Get WindowImplWin32 instance (it was passed as the last argument of CreateWindow)
longThis = reinterpret_cast<long>(reinterpret_cast<CREATESTRUCT*>(LParam)->lpCreateParams);
LONG_PTR This = reinterpret_cast<LONG_PTR>(reinterpret_cast<CREATESTRUCT*>(LParam)->lpCreateParams);
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
}
}
}