How to Run SDL 1.3 Test Cases

I downloaded SDL-1.3.0-4703, intending to experiment with OpenGL 3.0 context
creation. My environment is Vista SP2-32. I successfully built both the
libraries (SDL and SDLmain) and all of the test cases with VC2008. However,
I’m unable to run any of the test cases.

If I set a test case project as the start-up project and select Run, I
immediately get an access violation exception on the SDL_strlcpy statement
in the WinMain function in SDL_win32_main.c. When execution reaches the
preceding SDL_stack_alloc statement, the bufp pointer is legitimate.
However, after SDL_stack_alloc has completed, bufp has changed value and is
flagged as a bad pointer.

This is the first time I’ve compiled SDL, so it occurs to me that my
difficulties may be a simple matter of me not knowing how to run the test
cases in the context of the way you’ve organized the package.

I’d appreciate some guidance.

“WaltN” <@Walt_Niehoff> wrote in message
news:h903pl$2m8$1 at ger.gmane.org

I downloaded SDL-1.3.0-4703, intending to experiment with OpenGL 3.0
context creation. My environment is Vista SP2-32. I successfully built
both the libraries (SDL and SDLmain) and all of the test cases with VC2008.
However, I’m unable to run any of the test cases.

If I set a test case project as the start-up project and select Run, I
immediately get an access violation exception on the SDL_strlcpy statement
in the WinMain function in SDL_win32_main.c. When execution reaches the
preceding SDL_stack_alloc statement, the bufp pointer is legitimate.
However, after SDL_stack_alloc has completed, bufp has changed value and
is flagged as a bad pointer.

This is the first time I’ve compiled SDL, so it occurs to me that my
difficulties may be a simple matter of me not knowing how to run the test
cases in the context of the way you’ve organized the package.

I’d appreciate some guidance.

It helps if you remember to copy SDL.dll to the execution directory!

The Dummy

2009/9/18 WaltN :

“WaltN” wrote in message
news:h903pl$2m8$1 at ger.gmane.org

I downloaded SDL-1.3.0-4703, intending to experiment with OpenGL 3.0
context creation. ?My environment is Vista SP2-32. ?I successfully built
both the libraries (SDL and SDLmain) and all of the test cases with VC2008.
However, I’m unable to run any of the test cases.

It helps if you remember to copy SDL.dll to the execution directory!

or add it to your path

You can also add a custom build step to copy the SDL.dll file to the
output folder for each project.
Try something like
copy C:\lib\SDL\VisualC\SDL\Debug\SDL.dll $(OutDir)\SDL.dll