SetProp error |
hardcoder
|
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
|
I get this too on Vista, but only in release mode...
i am also really stumped with this one. the error is:
from the code:
using: SDL 1.3 GeForce 6800M GT VS 2008 Pro Vista Home Basic SP2 |
|||||||||||||||
|
hardcoder
|
Thanks for the info on build differences. I can't reproduce this error on any of local machines therefore I am not able to properly debug that. Of course my other team member has this on all 3 machines... |
|||||||||||||
|
Re: SetProp error |
hardcoder
|
This is what I got on Windows 7 64 bit: Error creating window: SetProp() failed: Invalid window handle. After a bit of research I discovered that it is this part of code from SDL_Win32Window.c function WIN_CreateWindow() that changes and breaks hwnd value:
when I commented it application finally works on many more test machines. |
|||||||||||||||
|
SetProp error |
Kenneth Bull
Guest
|
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 http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||
|
Re: SetProp error |
hardcoder
|
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?
|
|||||||||||||
|
SetProp error |
Kenneth Bull
Guest
|
On 01/06/2010, hardcoder wrote:
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 http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|