Original Post
Hello there. Here's a copy of my post from the SFML forums. I removed the SFML specific questions that have been solved but I'm still having problems:
I've recently added boost multi arrays to my project but there is a problem. Boost multi array apparently has some sort of problem iterating in VS10 so resizing them isn't working. After some googling, I have found that adding "_ITERATOR_DEBUG_LEVEL=0" to the preprocessor definitions. This seemed to fix that error but then I get an "Unhandled exception at 0x5b2137ff (msvcr100d.dll) in Game.exe: 0xC0000005: Access violation reading location 0xcccccccc." at an earlier spot that only happens when I try to load a texture from SFML.
EDIT:I can create a texture however when I try to do
then I get a runtime error and it opens fopen.c and apparently it stopped at
Also, apparently changing to release mode can fix boost multi array but I get a fatal error and it takes me to base.hpp and on line 136 it says
1.How do I get the boost multi array library to work when adding _ITERATOR_DEBUG_LEVEL=0 breaks SFML and boost multi array resizing won't work without it? The whole reason why I'm using them in the first place is so I can resize arrays. Also, these library issues are putting me behind schedule :/
I can also post the source code if needed but it's not organized wonderfully right now
I've recently added boost multi arrays to my project but there is a problem. Boost multi array apparently has some sort of problem iterating in VS10 so resizing them isn't working. After some googling, I have found that adding "_ITERATOR_DEBUG_LEVEL=0" to the preprocessor definitions. This seemed to fix that error but then I get an "Unhandled exception at 0x5b2137ff (msvcr100d.dll) in Game.exe: 0xC0000005: Access violation reading location 0xcccccccc." at an earlier spot that only happens when I try to load a texture from SFML.
EDIT:I can create a texture however when I try to do
if (!currentTexture.LoadFromFile("blah.jpg"))then I get a runtime error and it opens fopen.c and apparently it stopped at
if(*file==_T('\0'))
{
errno=EINVAL;
return NULL;
}Also, apparently changing to release mode can fix boost multi array but I get a fatal error and it takes me to base.hpp and on line 136 it says
BOOST_ASSERT(size_type(idx - index_bases[0]) < extents[0]);1.How do I get the boost multi array library to work when adding _ITERATOR_DEBUG_LEVEL=0 breaks SFML and boost multi array resizing won't work without it? The whole reason why I'm using them in the first place is so I can resize arrays. Also, these library issues are putting me behind schedule :/
I can also post the source code if needed but it's not organized wonderfully right now