this is actually a translation from Dutch, so I am not sure if accurate.

hardcoder

Joined: 06 Jan 2010

Posts: 84

Location: Poznan, Poland

Posted: Thu Jan 21, 2010 11:58 am

I could really use some help here.

This happens on a remote machine and I can't do a real debugging on it.

Error seems to be caused by invalid hwnd passed to SetProp() function. This happens even with simplest possible SDL 1.3 appliaction that only creates a window. The only way to get around it is using SDL_CreateWindowFrom() and passing it a hwnd from explicit CreateWindowEX(). But this does not work correctly: window is created, d3d rendered is initialized correctly but not all textures are drawn.

metaldev

Joined: 21 Jan 2010

Posts: 2

Posted: Thu Jan 21, 2010 8:18 pm

I get this too on Vista, but only in release mode...
i am also really stumped with this one.

when I commented it application finally works on many more test machines.

SetProp error

Kenneth Bull

Guest

Posted: Tue May 25, 2010 6:57 pm

only way that would happen is if SDL_realloc() failed... is g_hCtx
initialized prior to running this code? Might it be 0 or an invalid
pointer? could window->id be a negative number?
_______________________________________________
SDL mailing list

Unfortunately I am not able to give more details atm. On my machine I don't have this problem but my 2 team members can't run my application and are getting this error. I just looked at the SDL code and commented a block I mentioned in previous post to try it if it was the part that changed hwnd value and it helped for them. I will try to provide more data. Any ideas what could be happening on their machines?

Kenneth Bull wrote:

only way that would happen is if SDL_realloc() failed... is g_hCtx
initialized prior to running this code? Might it be 0 or an invalid
pointer? could window->id be a negative number?
_______________________________________________
SDL mailing list

Unfortunately I am not able to give more details atm. On my machine I don't
have this problem but my 2 team members can't run my application and are
getting this error. I just looked at the SDL code and commented a block I
mentioned in previous post to try it if it was the part that changed hwnd
value and it helped for them. I will try to provide more data. Any ideas
what could be happening on their machines?

It sounds like the window is destroyed (or doesn't exist in the first
place) when SDL tries to add a property to the window. There is an
environment variable that causes SDL to attempt to use an existing
window instead of creating it's own. Maybe that environment variable
has been set on their machines... Look for SDL_WINDOWID. There are
other things that could cause this, but that's the easiest to fix
_______________________________________________
SDL mailing list