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

Author Topic: [SOLVED] Window Crashing  (Read 15264 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] Window Crashing
« Reply #15 on: December 07, 2009, 07:37:31 am »
Quote from: "lotios611"
Great. Now it says something about a buffer overrun.

It really looks like you're using the release libraries in debug mode.
Laurent Gomila - SFML developer

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
[SOLVED] Window Crashing
« Reply #16 on: December 07, 2009, 11:59:05 am »
Just list the names of the libraries you are using.
Listen to my band: pencilcase.bandcamp.com

lotios611

  • Newbie
  • *
  • Posts: 32
    • View Profile
[SOLVED] Window Crashing
« Reply #17 on: December 07, 2009, 12:26:27 pm »
I'm using sfml-system.lib and sfml-window.lib and am compiling in Release.

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
[SOLVED] Window Crashing
« Reply #18 on: December 07, 2009, 12:27:37 pm »
You also need sfml-main when using MSVC.
Listen to my band: pencilcase.bandcamp.com

lotios611

  • Newbie
  • *
  • Posts: 32
    • View Profile
[SOLVED] Window Crashing
« Reply #19 on: December 07, 2009, 12:30:52 pm »
It still doesn't work.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] Window Crashing
« Reply #20 on: December 07, 2009, 01:32:37 pm »
Can you upload your whole project with sources?
Laurent Gomila - SFML developer

lotios611

  • Newbie
  • *
  • Posts: 32
    • View Profile
[SOLVED] Window Crashing
« Reply #21 on: December 08, 2009, 12:11:06 pm »
http://rapidshare.com/files/317951451/SFML_Programming.vcxproj.html I think that should work... I've never used rapidshare before.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] Window Crashing
« Reply #22 on: December 08, 2009, 01:10:33 pm »
Quote
 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
      <AdditionalDependencies>sfml-window.lib;sfml-system.lib;%(AdditionalDependencies)</AdditionalDependencies>
  </ItemDefinitionGroup>

Your debug configuration is wrong... Should be sfml-window-d and sfml-system-d.
Laurent Gomila - SFML developer

lotios611

  • Newbie
  • *
  • Posts: 32
    • View Profile
[SOLVED] Window Crashing
« Reply #23 on: December 08, 2009, 09:48:02 pm »
I thought I was compiling in Release mode. Anyways, It still doesn't work.

lotios611

  • Newbie
  • *
  • Posts: 32
    • View Profile
[SOLVED] Window Crashing
« Reply #24 on: December 08, 2009, 09:54:49 pm »
The worst thing about it is that I can use the System class but not the Window class.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] Window Crashing
« Reply #25 on: December 08, 2009, 10:17:58 pm »
Quote
I thought I was compiling in Release mode

I don't know what configuration you compile, but anyway the debug one is wrong ;)
Laurent Gomila - SFML developer

lotios611

  • Newbie
  • *
  • Posts: 32
    • View Profile
[SOLVED] Window Crashing
« Reply #26 on: December 09, 2009, 12:41:59 am »
Okay, I've just tried debugging again. My Window's name is app. Inside it, it has a thing called myInput. In that, there's a sf::Window. Inside that, there's something called _vfptr. It's value is NULL. Inside that there are 2 values, and both of them say "CXX0030: Error: expression cannot be evaluated." I'm not to good at debugging, so this is all I can find.

Oz1571

  • Newbie
  • *
  • Posts: 28
    • View Profile
[SOLVED] Window Crashing
« Reply #27 on: December 09, 2009, 02:02:52 am »
Can't you just zip your whole project up, including source, and upload it somewhere? I could take a look, or I'm sure Laurent would.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] Window Crashing
« Reply #28 on: December 09, 2009, 08:42:11 am »
Did you run the debugger in Debug configuration? :D

Quote
I'm sure Laurent would

Absolutely ;)
Laurent Gomila - SFML developer

lotios611

  • Newbie
  • *
  • Posts: 32
    • View Profile
[SOLVED] Window Crashing
« Reply #29 on: December 12, 2009, 06:08:47 pm »