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. Modeless Dialogboxes

Modeless Dialogboxes

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • L Offline
    L Offline
    Li Mu Bai
    wrote on last edited by
    #1

    Made a cd writing application and when it was creating the ISO I had a modeless dialog box, it was there for about 15 minutes and it crashed :( It doesnt crash when its just there for a few minutes anyone seen this before???

    C J 2 Replies Last reply
    0
    • L Li Mu Bai

      Made a cd writing application and when it was creating the ISO I had a modeless dialog box, it was there for about 15 minutes and it crashed :( It doesnt crash when its just there for a few minutes anyone seen this before???

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I have apps with modeless dialogs up constanty - the problem is with your code, modeless dialogs do not have a time limit. Have you tried debugging and seeing where it crashes ? Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff.

      1 Reply Last reply
      0
      • L Li Mu Bai

        Made a cd writing application and when it was creating the ISO I had a modeless dialog box, it was there for about 15 minutes and it crashed :( It doesnt crash when its just there for a few minutes anyone seen this before???

        J Offline
        J Offline
        Joaquin M Lopez Munoz
        wrote on last edited by
        #3

        Modeless dialogs can stay around for as long as it is required provided the program doesn't do any nasty thing to them. I'd say you've got a bug here --try to locate the lines of your code where you issuing a delete pModelessDlg (where pModelessDlg is the variable you use to hold a pinter to the dialog) and set breakpoints on these lines to determine if they're executed when they shoudn't. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        L 1 Reply Last reply
        0
        • L Li Mu Bai

          Its not getting deleted before its finished, The pointer to HWind is NULL Thanx guys

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          If it's NULL, then DestroyWindow has been called ( which is the correct way to delete a modeless dialog ). Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff.

          1 Reply Last reply
          0
          • J Joaquin M Lopez Munoz

            Modeless dialogs can stay around for as long as it is required provided the program doesn't do any nasty thing to them. I'd say you've got a bug here --try to locate the lines of your code where you issuing a delete pModelessDlg (where pModelessDlg is the variable you use to hold a pinter to the dialog) and set breakpoints on these lines to determine if they're executed when they shoudn't. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

            L Offline
            L Offline
            Li Mu Bai
            wrote on last edited by
            #5

            Its not getting deleted before its finished, The pointer to HWind is NULL Thanx guys

            C 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