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. Crash in Relese Build

Crash in Relese Build

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpannouncement
7 Posts 4 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.
  • R Offline
    R Offline
    Ravi Jadhav
    wrote on last edited by
    #1

    In release build my exe is crashing while invoking a dialog, its crashing in ::CreateDialogIndirect() function.:(( Can anybody help me. I got two Extention dlls, one DllOne.dll and another DllTwo.dll. I am handling menu clicks into DllOne.dll's mainfrm.cpp. into a function called Fun1(). In Fun1() i am trying to invoke a dialog from DllTwo.dll. There are two Dialogs into DllTwo.dll, For first Dialog its working fine in Release Build but the second one is not working (crashing into CreateDialogIndirect()). Both of these dialogs are working perfect in Deug build. Please Help Thanks

    R A 2 Replies Last reply
    0
    • R Ravi Jadhav

      In release build my exe is crashing while invoking a dialog, its crashing in ::CreateDialogIndirect() function.:(( Can anybody help me. I got two Extention dlls, one DllOne.dll and another DllTwo.dll. I am handling menu clicks into DllOne.dll's mainfrm.cpp. into a function called Fun1(). In Fun1() i am trying to invoke a dialog from DllTwo.dll. There are two Dialogs into DllTwo.dll, For first Dialog its working fine in Release Build but the second one is not working (crashing into CreateDialogIndirect()). Both of these dialogs are working perfect in Deug build. Please Help Thanks

      R Offline
      R Offline
      Roman Nurik
      wrote on last edited by
      #2

      supply us with some more info or just debug it (put a break point on it)

      - Roman -

      R 1 Reply Last reply
      0
      • R Roman Nurik

        supply us with some more info or just debug it (put a break point on it)

        - Roman -

        R Offline
        R Offline
        Ravi Jadhav
        wrote on last edited by
        #3

        I got one extension dll, with its own resources. It is having two dialog into its resource. i am invoing these two dialogs on menu click. I handled it in mainfrm.cpp. Its not at all giving any problem to first dialog invocation but it is crashing in second dialog invocation.

        J 1 Reply Last reply
        0
        • R Ravi Jadhav

          I got one extension dll, with its own resources. It is having two dialog into its resource. i am invoing these two dialogs on menu click. I handled it in mainfrm.cpp. Its not at all giving any problem to first dialog invocation but it is crashing in second dialog invocation.

          J Offline
          J Offline
          James Pullicino
          wrote on last edited by
          #4

          Maybe AFXManageState might help? Drinking In The Sun Forgot Password?

          R 1 Reply Last reply
          0
          • J James Pullicino

            Maybe AFXManageState might help? Drinking In The Sun Forgot Password?

            R Offline
            R Offline
            Ravi Jadhav
            wrote on last edited by
            #5

            tried AFX_MANAGE_STATE also.. Not Working I got two Extention dlls, one DllOne.dll and another DllTwo.dll. I am handling menu clicks into DllOne.dll's mainfrm.cpp. into a function called Fun1(). In Fun1() i am trying to invoke a dialog from DllTwo.dll. There are two Dialogs into DllTwo.dll, For first Dialog its working fine in Release Build but the second one is not working (crashing into CreateDialogIndirect()). Both of these dialogs are working perfect in Deug build. Please Help

            J 1 Reply Last reply
            0
            • R Ravi Jadhav

              tried AFX_MANAGE_STATE also.. Not Working I got two Extention dlls, one DllOne.dll and another DllTwo.dll. I am handling menu clicks into DllOne.dll's mainfrm.cpp. into a function called Fun1(). In Fun1() i am trying to invoke a dialog from DllTwo.dll. There are two Dialogs into DllTwo.dll, For first Dialog its working fine in Release Build but the second one is not working (crashing into CreateDialogIndirect()). Both of these dialogs are working perfect in Deug build. Please Help

              J Offline
              J Offline
              James Pullicino
              wrote on last edited by
              #6

              Maybe you're using a mix of release and debug builds? Have you tried recompiling ALL of your DLLs in release mode? Drinking In The Sun Forgot Password?

              1 Reply Last reply
              0
              • R Ravi Jadhav

                In release build my exe is crashing while invoking a dialog, its crashing in ::CreateDialogIndirect() function.:(( Can anybody help me. I got two Extention dlls, one DllOne.dll and another DllTwo.dll. I am handling menu clicks into DllOne.dll's mainfrm.cpp. into a function called Fun1(). In Fun1() i am trying to invoke a dialog from DllTwo.dll. There are two Dialogs into DllTwo.dll, For first Dialog its working fine in Release Build but the second one is not working (crashing into CreateDialogIndirect()). Both of these dialogs are working perfect in Deug build. Please Help Thanks

                A Offline
                A Offline
                Anonymous
                wrote on last edited by
                #7

                Try using AFX_MANAGE_STATE(AfxGetStaticModuleState()); at the beginning of the dll function in which you are aceessing the dialog.

                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