memory could not be wirtten when i click vc++ released exe

<santosh.s@discussions.microsoft.com> wrote in message
news:f6801a8a-42e6-4749-9f37-75d4f8df43b2@discussions.microsoft.com
>      this is santosh vc++ s/w developer have a pblm with released
> exe. when i click on exe so it giving msg      error memory could not
> "wirtten" 
>  but debug exe is working fine for same project
Build a release build with debug info included, debug it. To turn on debug info, go to Project Properties, make sure the Configuration drop-down in the top left corner shows Release. Then set the following options:
 
C/C++ | General | Debug Information Format = Program Database (/Zi)
Linker | Debugging | Generate Debug Info = Yes (/DEBUG)

--
With best wishes,
    Igor Tandetnik


Answer this question

memory could not be wirtten when i click vc++ released exe

  • thefirm

    Try stepping into your code by the debugger and see where exactly the Exception is being thrown.

    I am afraid without more info or sample code to reproduce the issue, it is really hard to speculate any causes.

    Thanks,
      Ayman Shoukry
      VC++ Team

  • Lolasmomma

    After changes as suggest it giving another error msg as follows : 

     

     

    Unhandled exception in smsg.exe (KERNEL32.DLL): Access Violation.

     
    Reagrds

    S. Santosh Naidu



  • Mariya Atanasova

    hi all,
         this is santosh vc++ s/w developer have a pblm with released exe. when i click on exe so it giving msg      error memory could not "wirtten"
     but debug exe is working fine for same project
    plse any body help me.


    regards
    santosh


  • memory could not be wirtten when i click vc++ released exe