mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

bad_alloc when using new gcn::ImageFont("...", "...") #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Windows libs and headers from 
http://thejosh.info/guichan/guichan-0.8.2-devel-win32.zip
2. Visual Studio 2012
3. call new gcn::ImageFont("...", "...")

What is the expected behaviour? What happens instead?
I was originally using 0.6.1 and figured it would be easy to move over to 
0.8.2. I call the new gcn::Imagefont() constructor and get a std::bad_alloc 
exception.

What version of the product are you using? On what operating system? Which 
back-end (SDL/Allegro/OpenGL/other)?
Visual Studio 2012, using SDL.

Please provide any additional information below.
There's no Windows sources for me to build that I could find for 0.8.2 (or any 
other version, for that matter). Not much that I can do because debugging is 
not an option without the Windows sources, unless someone can point me in the 
right direction. I've scoured over the website for anything that could help me 
in this but still, nothing.

Email is alekratz@gmail.com if someone wants to follow up on anything I've said 
so far.

Original issue reported on code.google.com by alekr...@gmail.com on 24 Nov 2012 at 4:27

GoogleCodeExporter commented 9 years ago
I guess the binaries don't match the VS2012. The sources contained in the zip 
should do, just include them into your project. That is, the guichan sources 
and the SDL backend... 

Original comment by tobias.s...@gmx.net on 24 Nov 2012 at 4:55

GoogleCodeExporter commented 9 years ago
Everything was fine when I was using the 0.6.2 with VS 2012. I may have to 
switch back to that, I guess.

Original comment by alekr...@gmail.com on 24 Nov 2012 at 5:11

GoogleCodeExporter commented 9 years ago
That's one thing you can do. I'm not very sure about the state of 0.8.2 because 
I forked alguichan on what might be 0.8.1 or so, but for that I'm sure that 
normally there should not be a bad_alloc like you described. 

More generally, with guichan it's always recommended to add the sources to the 
project and compile them yourself, to be sure that binaries work fine, and to 
be able to debug, of course. 

Original comment by tobias.s...@gmx.net on 24 Nov 2012 at 5:18