Sign in to follow this  

Debugger problem (Devc++)

This topic is 4305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is my first time using a debuger and I keep getting this error, "An Access Violation (Segmentation Fault) raised in your program.", every time I step over the SDL_Init function. My book says it may be because of passing incorrect arguments but im only passing: SDL_INIT_VIDEO | SDL_INIT_TIMER.

Share this post


Link to post
Share on other sites

if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER))
{
printf("Error while initializing SDL\n");
return 1;
}


This works fine. I've tested it on Dev-C++ 4.9.9.2

----------
http://gamescreators.sourceforge.net/index.php --- linux games programmers community

[Edited by - freenity on March 2, 2006 8:55:49 PM]

Share this post


Link to post
Share on other sites

This topic is 4305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this