SDL_SysWMinfo corrupted after using SDL_GetWindowWMInfo |
urosidoki
|
No one?
I am really surprised I am the only one having this problem Cheers |
|||||||||||
|
Re: SDL_SysWMinfo corrupted after using SDL_GetWindowWMInfo |
DLudwig
|
Can you provide some additional details on this, in particular, but not necessarily limited to the following: 1. which version of SDL are you using? I.e. 2.0.3? A checkout from hg.libsdl.org? Something else? 2. which platform are you running your app on? 3. which compiler are you building with, and what version is it at? I have familiarity with some, but not all, SDL2 platforms and versions, same as I suspect most people are, around here. :-) Cheers! -- David L. |
|||||||||||||
|
urosidoki
|
Hi!
1.- I am using 2.0.3 downloaded from the official page (https://www.libsdl.org/download-2.0.php), I am talking about the development libraries. 2.- I am running on Windows 7 3.- I am building it in Visual Studio 2010 and in Visual Studio 2015 (two different computers) in both I have the same problem. I hope this helps Thanks |
|||||||||||
|
urosidoki
|
To give some extra information, the SDL code is part of a library called 2dRenderer, I link statically with my Launcher project (exe) to this library.
Cheers |
|||||||||||
|
urosidoki
|
And even more information.
It happens only when I compile in debug, I have the Run-time error but I can continue the execution properly, but in Release I dont have the error at all. |
|||||||||||
|
urosidoki
|
Hi again,
I have made some progress in this, It seems that the problem disappear if I set the option C/C++ -> Code Generation -> Basic Runtime Checks to Default (as in the SDL samples) In my case I got it in debug setup to Both (/RTC1, equiv. to /RTCsu) (/RTC1), the weird thing is that I am trying to reproduce it in the SDL samples by setting the same project configuration and I can't so far. I will let you know if I can reproduce it there, I suspect there is some compiler flag combinations that will cause the same problem in the samples. Cheers! |
|||||||||||
|
urosidoki
|
Hi again,
I just figure out the problem: It seems that the problem was that I was using the SDL2 build version downloaded from the website, I dont know what was the VS used to compile those but it seems that it was not compatible with my projects. I just downloaded the source code and compiled by myself and now everything works properly. Thanks and I hope this help other people with the same problem |
|||||||||||
|
SDL_SysWMinfo corrupted after using SDL_GetWindowWMInfo |
Christian Leger
Guest
|
Thanks for sharing!
You might be surprised by how often it does happen that you are the first to try something specific, and are therefore the first to solve it, or at least to be taking your adventure public! On Tue, Dec 29, 2015 at 6:57 AM, urosidoki wrote:
|
|||||||||||||
|
MrTAToad
|
Will you be releasing the SDL2 renderer system for IMgui ?
|
|||||||||||
|