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. Debug vs Realese

Debug vs Realese

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiodebuggingquestionannouncement
10 Posts 5 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.
  • O Offline
    O Offline
    Ohad Cabiri
    wrote on last edited by
    #1

    hi, When I am trying to run the my dll and program use it in release mode it crashs on these lines: _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle() { ASSERT(afxCurrentResourceHandle != NULL); in AFXWIN1.inl header What can be the cause for that ? It functions perfectly in debug mode. Thanks, :confused: Ohad

    CPalliniC P P T 4 Replies Last reply
    0
    • O Ohad Cabiri

      hi, When I am trying to run the my dll and program use it in release mode it crashs on these lines: _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle() { ASSERT(afxCurrentResourceHandle != NULL); in AFXWIN1.inl header What can be the cause for that ? It functions perfectly in debug mode. Thanks, :confused: Ohad

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • O Ohad Cabiri

        hi, When I am trying to run the my dll and program use it in release mode it crashs on these lines: _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle() { ASSERT(afxCurrentResourceHandle != NULL); in AFXWIN1.inl header What can be the cause for that ? It functions perfectly in debug mode. Thanks, :confused: Ohad

        P Offline
        P Offline
        pffeng
        wrote on last edited by
        #3

        You should use the debug dll in Debug mode,and the Release dll in release mode.

        O 1 Reply Last reply
        0
        • P pffeng

          You should use the debug dll in Debug mode,and the Release dll in release mode.

          O Offline
          O Offline
          Ohad Cabiri
          wrote on last edited by
          #4

          This is what I am doing.....

          1 Reply Last reply
          0
          • O Ohad Cabiri

            hi, When I am trying to run the my dll and program use it in release mode it crashs on these lines: _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle() { ASSERT(afxCurrentResourceHandle != NULL); in AFXWIN1.inl header What can be the cause for that ? It functions perfectly in debug mode. Thanks, :confused: Ohad

            P Offline
            P Offline
            prasad_som
            wrote on last edited by
            #5

            Not sure though. I face registration problem in one of my COM dlls in release mode. I found that .rc was excluded accidenlty in release configuration. See, if simlar thing is happening to you. In addition I recommend you to go through this[^] article.

            Prasad Notifier using ATL | Operator new[],delete[][^]

            O T 2 Replies Last reply
            0
            • P prasad_som

              Not sure though. I face registration problem in one of my COM dlls in release mode. I found that .rc was excluded accidenlty in release configuration. See, if simlar thing is happening to you. In addition I recommend you to go through this[^] article.

              Prasad Notifier using ATL | Operator new[],delete[][^]

              O Offline
              O Offline
              Ohad Cabiri
              wrote on last edited by
              #6

              I have only one .rc, he create two diffrent files for debug and release (.res).

              1 Reply Last reply
              0
              • O Ohad Cabiri

                hi, When I am trying to run the my dll and program use it in release mode it crashs on these lines: _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle() { ASSERT(afxCurrentResourceHandle != NULL); in AFXWIN1.inl header What can be the cause for that ? It functions perfectly in debug mode. Thanks, :confused: Ohad

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                Ohad Cabiri wrote:

                When I am trying to run the my dll and program use it in release mode it crashs on these lines: _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle() { ASSERT(afxCurrentResourceHandle != NULL); in AFXWIN1.inl header

                How... how you debugged a released mode dll

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

                P 1 Reply Last reply
                0
                • P prasad_som

                  Not sure though. I face registration problem in one of my COM dlls in release mode. I found that .rc was excluded accidenlty in release configuration. See, if simlar thing is happening to you. In addition I recommend you to go through this[^] article.

                  Prasad Notifier using ATL | Operator new[],delete[][^]

                  T Offline
                  T Offline
                  ThatsAlok
                  wrote on last edited by
                  #8

                  prasad_som wrote:

                  In addition I recommend you to go through this[^] article.

                  hi,  Happy new year.. i am afraid, this article is no use here!

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                  cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

                  P 1 Reply Last reply
                  0
                  • T ThatsAlok

                    prasad_som wrote:

                    In addition I recommend you to go through this[^] article.

                    hi,  Happy new year.. i am afraid, this article is no use here!

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

                    P Offline
                    P Offline
                    prasad_som
                    wrote on last edited by
                    #9

                    ThatsAlok wrote:

                    Happy new year

                    Thanks. Same to you.

                    ThatsAlok wrote:

                    i am afraid, this article is no use here!

                    Atleast, should get idea, what problem may occurs in release, but not in debug build.

                    Prasad Notifier using ATL | Operator new[],delete[][^]

                    1 Reply Last reply
                    0
                    • T ThatsAlok

                      Ohad Cabiri wrote:

                      When I am trying to run the my dll and program use it in release mode it crashs on these lines: _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle() { ASSERT(afxCurrentResourceHandle != NULL); in AFXWIN1.inl header

                      How... how you debugged a released mode dll

                      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

                      P Offline
                      P Offline
                      prasad_som
                      wrote on last edited by
                      #10

                      ThatsAlok wrote:

                      How... how you debugged a released mode dll

                      Possibly , using this[^] technique.

                      Prasad Notifier using ATL | Operator new[],delete[][^]

                      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