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

Author Topic: App.Clear() crashes program & other problems.  (Read 1718 times)

0 Members and 2 Guests are viewing this topic.

Sivak

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
App.Clear() crashes program & other problems.
« on: March 17, 2010, 11:29:09 pm »
Hey all.  I've been going through the basics and now I've hit what probably should not be.

The App.Clear() will crash the program no matter what.  I've commented this out and I can have the blank window just fine.  I have no idea why this would happen.  App.Display() works fine.  Empty window and all that.

Also, another problem I seem to be having is I can't open any image files.  Basically, it'll compile, but running the program makes the PC speaker go off and then it finally closes.

Here's what I've got:
-Windows XP SP3
-Visual C++ 2008 express

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
App.Clear() crashes program & other problems.
« Reply #1 on: March 17, 2010, 11:30:54 pm »
Make sure that you don't use release libraries in debug mode (see the VC++ tutorial).

Do you have an ATI graphics card?
Laurent Gomila - SFML developer

Sivak

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
App.Clear() crashes program & other problems.
« Reply #2 on: March 17, 2010, 11:50:25 pm »
Wow, I can't believe I missed that.  the -d fixed it all and I've got a PNG background loaded.  Thank you ever so much!

And no, Nvidia.

 

anything