[RESOLVED] Debug Assertion Failed:vector subscript out of range - Page 3
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 36 of 36

Thread: [RESOLVED] Debug Assertion Failed:vector subscript out of range

  1. #31
    Join Date
    Mar 2017
    Posts
    37

    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.

  2. #32
    Join Date
    Mar 2017
    Posts
    37

    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.

  3. #33
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    5,837

    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.4.4)

  4. #34
    Join Date
    Mar 2017
    Posts
    37

    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.

  5. #35
    Join Date
    Mar 2017
    Posts
    37

    Re: [RESOLVED] Debug Assertion Failed:vector subscript out of range

    This information is only required to solve the probelem

  6. #36
    Join Date
    Mar 2017
    Posts
    37

    Re: [RESOLVED] Debug Assertion Failed:vector subscript out of range

    Thanks to all,with some changes in my code.It is resolved.

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)