[SDL] SDL_PollEvent after SDL_SetVideoMode causes access violation
vanvelzen at skynet.be
Mon Aug 11 01:26:00 PDT 2003
May i ask which compiler do you use ?
I tried the modified code you sent me but the problem remains.
I just created the .lib file from the dll because VC lib's are not
so i offcourse have to add that to my project and link to it. I use the dll
when I try to build SDL it always gives me compiler errors. So the lib file
use is SDL.lib because the dll is named SDL.dll. I use implib.exe and
to create the lib file. Sometimes the's libs don't work when created from a
so i have another program to fix the function definitions in the .def if
main declared with ( void ) is perfectly legal according to my uni
he could be wrong though :) and my compiler accepts it just fine.
I just updated my SDL_net to version 1.2.5, it was 1.2.4 but this had no
effect on the
If you do not have the problem on WIN32 with the same SDL_net and NET2
then that would suggest one of two things imho. Either the compiler you use
does something different
or the CVS version of SDL has a fix for this problem. If you are using VC
then i suspect the first.
In case of the second i would need someone to compile a dll from the latest
CVS version for me
because like i said before it won't compile here.
Anyone else out there using Borland C++ Builder 6 ?
If so could you give the test program a try plz.
Tnx & GreeTz.
| Dinand Vanvelzen, |
| Programmer, |
| Software Engineering student |
----- Original Message -----
From: "Sam Lantinga" <slouken at devolution.com>
To: "Dinand Vanvelzen" <vanvelzen at skynet.be>
Cc: <sdl at libsdl.org>
Sent: Sunday, August 10, 2003 11:43 PM
Subject: Re: [SDL] SDL_PollEvent after SDL_SetVideoMode causes access
> One thing looked suspicious in your code, when I tried to compile it,
> the linker complained that SDL_main was missing. This was because main()
> was declared incorrectly, and you weren't linking with SDLmain.lib
> The attached files work fine for me with the latest versions of SDL_net
> and NET2 and the CVS version of SDL. I suspect that if you just have
> declared correctly your code won't segfault. SDL does some DirectInput
> initialization in SDLmain.lib which must happen before the rest of your
> program runs.
> See ya!
> -Sam Lantinga, Software Engineer, Blizzard Entertainment
More information about the SDL