Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dabo

Pages: 1 ... 16 17 [18]
256
Graphics / Error loading image
« on: September 30, 2007, 09:36:25 pm »
I'm trying to load a jpg image (1024x768), there's nothing wrong when I build the project in VS C++ 2005, but when I try to run it this error message shows up:

"Unhandled exception at 0x1023ee40 in first_ex.exe: 0xC0000005: Access violation reading location 0x097f1000."

This is the code I'm using:

Code: [Select]
sf::Image ImgBgr;
if (!ImgBgr.LoadFromFile("./background2.jpg"))
{
cout << "error loading image." << endl;
                return EXIT_FAILURE;
}

sf::Sprite SprBgr(ImgBgr, 0, 0);
App.Draw(SprBgr);


Other images load successfully but this one won't, I've tried other image formats too but nothing works. Any idea what's wrong?

Edit: I forgot to mention that in debug mode, it shows that the problem is on the line where I call the LoadFromFile-function.

257
Graphics / Ugly font output
« on: September 30, 2007, 12:15:50 pm »
I'm having a similar problem, the text i draw on screen doesn't look good at all, I'm trying to use verdana.ttf (I know the path is correct).

258
SFML projects / Particles!
« on: September 29, 2007, 11:51:19 am »
Really impressive I must say, the top left one looks great.

259
SFML projects / Particles!
« on: September 23, 2007, 02:01:28 am »
Looking good, good luck with it!

260
General discussions / this looks interesting
« on: September 16, 2007, 03:05:25 pm »
I just found out about SFML this morning, and so far everything is fantastic. I was about to start my first game projekt using SDL but now when I have found SFML, SDL is out of the picture.

The documentation and tutorials are great too.

Pages: 1 ... 16 17 [18]
anything