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

Author Topic: Fonts, don't we all love fonts...  (Read 8081 times)

0 Members and 1 Guest are viewing this topic.

Maximilian

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Fonts, don't we all love fonts...
« Reply #15 on: October 17, 2013, 11:00:37 am »
yeah... I'm really REALLY sorry for wasting so much time... Not used to working with librariest I didnt write myself.

Ok, here goes:
I'm using MS Visual Studio Express 2012

This is my project file:
https://www.dropbox.com/s/40mkcnxyee0vhe4/GraphClass.vcxproj

And I downloaded the vc10 package. I did this because I'm uncomfortable working with other people libraries (and in my profession I work with entirerly different types of environments, often entierly preconstructed environments where I just ahve to write code...)
I'm Fairly certain I'm using the 32-bit library, for various reasons.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Fonts, don't we all love fonts...
« Reply #16 on: October 17, 2013, 11:08:17 am »
Quote
I'm using MS Visual Studio Express 2012
Quote
And I downloaded the vc10 package
What about downloading the package that matches your compiler? ???
Laurent Gomila - SFML developer

Maximilian

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Fonts, don't we all love fonts...
« Reply #17 on: October 17, 2013, 11:09:40 am »
Ther IS one for vs 2012? I havent seen one...

EDIT: IM AN IDIOT!
Nevermind me... Im just gonna go and be ashamed of myself now...

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Fonts, don't we all love fonts...
« Reply #18 on: October 17, 2013, 11:57:04 am »
Please trust me when I say this: My code runs a simple graph datastructure. I have spent alot of time on projects like this one before and my errors are not related to missmanagedment of memory on my part. Yet the problem persists.
Even if it's not the problem in this case, you can greatly improve your code with the RAII idiom. There are so many problems with raw memory management, of which memory leaks is only the most obvious one. Since C++ makes it so simple to handle memory automatically (yes, your code will become simpler) and allows to do this at zero cost (no, your code won't be slower), there is virtually no reason to still manage memory by hand.

I tried to show an example of how much can go wrong in a simple code in this thread, please read it. I'm sure you'll like RAII :)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Fonts, don't we all love fonts...
« Reply #19 on: October 18, 2013, 08:02:04 am »
Maybe it's about time we add a self validation feature so SFML detects/warns it's being used in a different compiler than the one in which it was compiled? :P
I'm not even joking at this point, self validation is dumb but so are 2 pages of 'WAAFONTBROKEN' that in the end is non interoperable compilers issue, again...
Back to C++ gamedev with SFML in May 2023

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Fonts, don't we all love fonts...
« Reply #20 on: October 18, 2013, 08:29:44 am »
Quote
Maybe it's about time we add a self validation feature so SFML detects/warns it's being used in a different compiler than the one in which it was compiled?
This would be difficult. It's not just the compiler version, it's a lot of configuration flags: standard library linkage, threading model, exception model, C++11, ... basically anything that breaks binary compatibility between two variants of a compiler.
And I don't think this should be checked at runtime by the library anyway. By the way, it doesn't happen that much, the most common mistake is rather to use release libraries in debug mode.
Laurent Gomila - SFML developer

 

anything