-
March 29th, 2017, 03:36 AM
#31
Re: [RESOLVED] Debug Assertion Failed:vector subscript out of range
Thanks for the advice,after I debug it,I will show you the line from where it deviates.
-
March 29th, 2017, 08:50 AM
#32
Re: [RESOLVED] Debug Assertion Failed:vector subscript out of range
I debugged it, as you see my second last line of main () is app.display(); which displays the app,so the screen remains black until the second last statement executes.As it executes, I see the wrong result.So I couldn't find the probelem.
I navigated thorough the code line by line using step into and step over.
-
March 29th, 2017, 09:18 AM
#33
Re: [RESOLVED] Debug Assertion Failed:vector subscript out of range
SFML has a community forum at https://en.sfml-dev.org/forums/ You could try asking there.
As I have no knowledge of SFML I can't assist further.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++17 Compiler: Microsoft VS2017 (15.6.6)
-
March 29th, 2017, 09:32 AM
#34
Re: [RESOLVED] Debug Assertion Failed:vector subscript out of range
Basically,app.clear clears the window on which the result is to be displayed.We then code in the graphics code, and then use app.display();to display the app.
-
March 29th, 2017, 09:33 AM
#35
Re: [RESOLVED] Debug Assertion Failed:vector subscript out of range
This information is only required to solve the probelem
-
April 1st, 2017, 08:40 AM
#36
Re: [RESOLVED] Debug Assertion Failed:vector subscript out of range
Thanks to all,with some changes in my code.It is resolved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
|