Sign in to follow this  

Sfml buffer overrun in release build

This topic is 2483 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For some reason on my version of VC++ 2010 i cant create a release build. I keep gettin a buffer overrun error. What could be the problem? I linked my libs fine because i can run it in debug.

Share this post


Link to post
Share on other sites
Posting some code might allow for someone to respond faster. Also which version of SFML are you using 1.6 or 2.0 beta? I recommend using 2.0 beta as it is more efficient than the later and I have had zero problems with it in the past.

Share this post


Link to post
Share on other sites
Can you please give us the exact error message, and show us your code?

Did you link to the debug versions of the libs? If so, did you also link to the non-debug versions for release? You haven't linked to the debug versions [i]for[/i] release?

Share this post


Link to post
Share on other sites
Have you turned on buffer overrun detection for your debug build? I highly recommend it; it's even capable of catching stuff like this:
[code] int blah[64];
int rhubarb[1024];
int *blahblah = blah;

blahblah[666] = 27;[/code]
Project | Properties | Configuration Properties | C/C++ | Code Generation.

Share this post


Link to post
Share on other sites
[quote name='mhagain' timestamp='1298574576' post='4778568']
Have you turned on buffer overrun detection for your debug build? I highly recommend it; it's even capable of catching stuff like this:
[code] int blah[64];
int rhubarb[1024];
int *blahblah = blah;

blahblah[666] = 27;[/code]
Project | Properties | Configuration Properties | C/C++ | Code Generation.
[/quote]

how do i activate it?
and by the way...its not the debug im having trouble with...its the release

Share this post


Link to post
Share on other sites
[quote]how do i download SFML 2.0??? [/quote]

Here is the link to the SVN Snapshot of SFML 2.0 beta [url="http://sfml.svn.sourceforge.net/viewvc/sfml/branches/sfml2.tar.gz?view=tar"]Download[/url]. Also you are going to need to pick up [url="http://www.cmake.org/cmake/resources/software.html"]CMake[/url] to build the SVN Snapshot for a specific version of your IDE E.g. VS2010, VS2008, etc... If you need help with the instructions on how to build this in Visual Studios I would be glad to assist you with that, just let me know if you can't get it figured out.

Share this post


Link to post
Share on other sites
[quote name='KrNaGe' timestamp='1298581316' post='4778633']
[quote name='mhagain' timestamp='1298574576' post='4778568']
Have you turned on buffer overrun detection for your debug build? I highly recommend it; it's even capable of catching stuff like this:
[code] int blah[64];
int rhubarb[1024];
int *blahblah = blah;

blahblah[666] = 27;[/code]
Project | Properties | Configuration Properties | C/C++ | Code Generation.
[/quote]

how do i activate it?
and by the way...its not the debug im having trouble with...its the release
[/quote]

That's OK, I know that. A Debug build will often benignly swallow errors that a Release build chokes on, so what you want to do is tell your Debug build to be a little stricter, and this is one of the ways you can do so.

I just told you how to activate it, by the way: [b]Project | Properties | Configuration Properties | C/C++ | Code Generation[/b]

Share this post


Link to post
Share on other sites

This topic is 2483 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this