Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,514 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,336 people online right now. Registration is fast and FREE... Join Now!




SDL causing Access Violation?

 
Reply to this topicStart new topic

SDL causing Access Violation?, Totally confused...

Glasseater
25 Jun, 2007 - 03:44 PM
Post #1

New D.I.C Head
*

Joined: 15 Jun, 2007
Posts: 46


My Contributions
Hey, I'm running a short script (see below) and no matter what I do, it gives me an Access Violation message when I try to debug it. I've even tried merely including SDL.h without actually using any of SDL's code and it still spits out the message. Everything runs fine, but it's making it difficult to debug. Is there a problem with SDL, or with me?

Here's the test code I'm using, I noticed it doing this while working on a much bigger section of code. As I said before, the program runs fine, but if I try to debug I get the message.
CODE
#include "SDL/SDL.h"

int main( int argc, char* args[] )
{
    SDL_Init( SDL_INIT_EVERYTHING );
    SDL_Quit();
    return 0;
}


Any help/guidance is greatly appreciated.
User is offlineProfile CardPM
+Quote Post

Xing
RE: SDL Causing Access Violation?
26 Jun, 2007 - 08:03 PM
Post #2

D.I.C Addict
Group Icon

Joined: 22 Jul, 2006
Posts: 723



Thanked: 4 times
Dream Kudos: 1575
My Contributions
Have you setup the SDL properly?
Take a look at Setting Up SDL tutorial.

This post has been edited by Xing: 26 Jun, 2007 - 08:08 PM
User is offlineProfile CardPM
+Quote Post

Glasseater
RE: SDL Causing Access Violation?
28 Jun, 2007 - 02:49 PM
Post #3

New D.I.C Head
*

Joined: 15 Jun, 2007
Posts: 46


My Contributions
Sorry for the long delay.

Yes, I followed that guide for my compiler and OS (Dev C++ on Windows). I'm not sure what's wrong, everything runs fine, the memory usage is (seemingly) normal and as far as I can tell it's not leaking much memory if at all. Should I be worried about this affecting the performance of my app.?
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/7/09 07:57PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month