none
Release build crashing often RRS feed

All replies

  • Hi SAI,

    When you build with release mode, did you encounter any errors? Did the error occur before build or in the build process? 

    The issue is complex to explain and there are many reasons for this. 

    Please follow these steps to troubleshoot it.

    1. Please share the Diagnostic log with us(Tools-->Options-->Projects and Solutions-->Build and Run-->set MSBuild project build output verbosity to Diagnostic)

    2. Please try to build your solution on Developer Command Prompt and input this to check whether it is the problem of VS IDE or MSBuild

    msbuild "xxx\xxx\xxx.sln" /t:Build /p:Configuration=Release

    3.run VS with /safemode to troubleshoot if it's a third-party plugin.

    If these do not work, please share more information about the steps you did and more detailed information about your project such as the type of your project, the nuget package it referred and any other useful information.

    Look forward to hearing from you.

    Best Regards,

    Perry


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, October 16, 2019 8:58 AM
  • I am not getting any errors while building the application 

    saikalyan

    Wednesday, October 16, 2019 10:46 AM
  • Hi SAl,

    Try to delete the .vs folder under the physical path of the solution.

    clean all the files under the path "C:\Users\xxx\AppData\Local\Temp"

    Not sure this is going to work.

     >>If this does not work, maybe it is your code. Probably because of an uninitialized variable ---in debug mode most variables are Initialized to zero but are uninitialized in release. So please check your code and remember to initialize your parameters and objects.

    If your project is based on c++, you can raise the alert level maximizes logical and coding errors in your project. More often than not, a warning is a logical error. You can reveal hidden problems through this.

      (Right-click on your project-->Properties-->Configuration Properties-->C/C++-->Warning level-->and then set it to Level 4 or EnableAllWarnings

    More detailed information you can refer to this:

    https://stackoverflow.com/questions/5806793/program-crash-in-release-build

    Best Regards,

    Perry


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, October 17, 2019 3:01 AM
  • Hi SAI KALYAN,

    Sorry for bothering you.

    According to your description, we recommend you could check if your dynamic libraries are built in release mode, and make sure the build mode of execute file is same with libraries. For example, when your exe APP was built release mode, your Dlls must be release mode.

    Hope it could help you.

    Best Regards,

    Dylan





    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Friday, October 18, 2019 6:56 AM