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. Why any application get hangs.

Why any application get hangs.

Scheduled Pinned Locked Moved C / C++ / MFC
c++
10 Posts 3 Posters 0 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.
  • S Offline
    S Offline
    sheshidar
    wrote on last edited by
    #1

    Hi all, Why a Application get hangs. I am working witha MFC dialog Based application. When I try to use controls on dialog box , application gets hang. No Abort, nothing only Hanging. Can Any one tell me why this will happend. Thanking You. Sheshidar

    _ H 2 Replies Last reply
    0
    • S sheshidar

      Hi all, Why a Application get hangs. I am working witha MFC dialog Based application. When I try to use controls on dialog box , application gets hang. No Abort, nothing only Hanging. Can Any one tell me why this will happend. Thanking You. Sheshidar

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      sheshidar wrote:

      Why any application get hangs.

      Did you check that whether there is a thread that lock's itself or some infinite while loop that you are using in your code. If you can post some code relevant to your application and this query you are more likely to get to the solution.

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      S 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        sheshidar wrote:

        Why any application get hangs.

        Did you check that whether there is a thread that lock's itself or some infinite while loop that you are using in your code. If you can post some code relevant to your application and this query you are more likely to get to the solution.

        Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        S Offline
        S Offline
        sheshidar
        wrote on last edited by
        #3

        Thx very much for ur reply. I am getting this problem when data sharing between control and member variable.

        _ 1 Reply Last reply
        0
        • S sheshidar

          Hi all, Why a Application get hangs. I am working witha MFC dialog Based application. When I try to use controls on dialog box , application gets hang. No Abort, nothing only Hanging. Can Any one tell me why this will happend. Thanking You. Sheshidar

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Can you be more specific can you show snippet code

          _**


          **_

          WhiteSky


          S 1 Reply Last reply
          0
          • S sheshidar

            Thx very much for ur reply. I am getting this problem when data sharing between control and member variable.

            _ Offline
            _ Offline
            _AnsHUMAN_
            wrote on last edited by
            #5

            are you copying/sharing data in a while loop . It could be an infinite loop. Can you post some code...

            Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

            S 1 Reply Last reply
            0
            • H Hamid Taebi

              Can you be more specific can you show snippet code

              _**


              **_

              WhiteSky


              S Offline
              S Offline
              sheshidar
              wrote on last edited by
              #6

              Code is very lengthy. I can write more specific. I had create 2 dialog boxes. First I had create one more dialog box with splitters, then i showed these first two dialogs in splitters. I accessed the controls on dialogs from the third dialog box. Now I used Tab Control instead of splitter plane. Then start problem. I am able to see the two dialogs in diferent tabs but not able to access them. When I tried to access them then application get hangs.

              _ H 2 Replies Last reply
              0
              • _ _AnsHUMAN_

                are you copying/sharing data in a while loop . It could be an infinite loop. Can you post some code...

                Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

                S Offline
                S Offline
                sheshidar
                wrote on last edited by
                #7

                No I didn't used any while loop

                1 Reply Last reply
                0
                • S sheshidar

                  Code is very lengthy. I can write more specific. I had create 2 dialog boxes. First I had create one more dialog box with splitters, then i showed these first two dialogs in splitters. I accessed the controls on dialogs from the third dialog box. Now I used Tab Control instead of splitter plane. Then start problem. I am able to see the two dialogs in diferent tabs but not able to access them. When I tried to access them then application get hangs.

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  How to access to dialogs and whats error?

                  _**


                  **_

                  WhiteSky


                  1 Reply Last reply
                  0
                  • S sheshidar

                    Code is very lengthy. I can write more specific. I had create 2 dialog boxes. First I had create one more dialog box with splitters, then i showed these first two dialogs in splitters. I accessed the controls on dialogs from the third dialog box. Now I used Tab Control instead of splitter plane. Then start problem. I am able to see the two dialogs in diferent tabs but not able to access them. When I tried to access them then application get hangs.

                    _ Offline
                    _ Offline
                    _AnsHUMAN_
                    wrote on last edited by
                    #9

                    sheshidar wrote:

                    not able to access them

                    What do you mean by not able to access them. How are you creating the third dialog. Modal or modeless?

                    Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

                    S 1 Reply Last reply
                    0
                    • _ _AnsHUMAN_

                      sheshidar wrote:

                      not able to access them

                      What do you mean by not able to access them. How are you creating the third dialog. Modal or modeless?

                      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

                      S Offline
                      S Offline
                      sheshidar
                      wrote on last edited by
                      #10

                      I used Modeless. I had created them using CreateIndirect Method.

                      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