Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. crashed ( i CSimpleStringT ) when new control are added to dialog

crashed ( i CSimpleStringT ) when new control are added to dialog

Scheduled Pinned Locked Moved C / C++ / MFC
debugging
4 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bilge Kaan
    wrote on last edited by
    #1

    Hello, After I have added some new controls to dialog and add variables related with these new controls ,application crashes.( no crash after controls are added but related variable are not defined) When I break application and try to debug it , I saw that it is crashing within void Reallocate( _In_ int nLength ) function of CSimpleStringT class.Any comments ...

    D 1 Reply Last reply
    0
    • B Bilge Kaan

      Hello, After I have added some new controls to dialog and add variables related with these new controls ,application crashes.( no crash after controls are added but related variable are not defined) When I break application and try to debug it , I saw that it is crashing within void Reallocate( _In_ int nLength ) function of CSimpleStringT class.Any comments ...

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Can you remove all of the related variables and then add them back in one at a time until the problem appears?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      B 1 Reply Last reply
      0
      • D David Crow

        Can you remove all of the related variables and then add them back in one at a time until the problem appears?

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        B Offline
        B Offline
        Bilge Kaan
        wrote on last edited by
        #3

        I have already remove all latest added control, and try to put one bye one and change their IDs also. I got the some result.As soon as first variable defined after first control is put onto dialog , it crashes.

        D 1 Reply Last reply
        0
        • B Bilge Kaan

          I have already remove all latest added control, and try to put one bye one and change their IDs also. I got the some result.As soon as first variable defined after first control is put onto dialog , it crashes.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Bilge Kaan wrote:

          ...it crashes.

          Exception, assertion, or some other anomaly?

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups