The error is Unhandled exception at 0x6F4C2A9D (SDL_ttf.dll) in helloWorld.exe: 0xC0000005: Access violation reading location 0x00000000
The error is coming up at line 'text = TTF_RenderText_Blended(font, "Hello World!", color3);'
I looked it up and most people are saying its something to do with trying to nullify a pointer which is already null but as far as I can tell this isn't the issue here, so any help from someone would be really appreciated.
Full code is at http://pastebin.com/LhrZEga6
Code before the error occurs is below
#include "SDL.h"
#include "SDL_ttf.h"
int main( int argc, char* args[] )
{
//Start SDL
SDL_Init( SDL_INIT_EVERYTHING );
TTF_Init();
//Font stuff
TTF_Font* font = TTF_OpenFont("Arial.ttf", 32);
//Creates game screen and image object
SDL_Surface* screen, *image, *text;
screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE);
//Creates game loop
bool running = true;
//Creates text
SDL_Color color3 = {0xff, 0xff, 0xff};
text = TTF_RenderText_Blended(font, "Hello World!", color3);
Thanks again