Jump to content
  • Advertisement
Sign in to follow this  
ForeverNoobie

Debugger problem (Devc++)

This topic is 4467 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!