• Advertisement
Sign in to follow this  

Debugger problem (Devc++)

This topic is 4373 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
Advertisement

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
Sign in to follow this  

  • Advertisement