CE app works in debug, but not in release RRS feed

  • Question

  • I have a Windows CD 6.0 app which works in Debug mode, but not in release.

    Work means the app displays the data in the window correctly.  The data is coming from a server.  The app appears to be receiving and sending data to the server correctly always.

    The _Debug define controls printing of a log file and debug information.  When all the _Debug code is removed, the app does not work properly.  (that is it does not display the data properly)

    If I set up Release mode to include the _Debug, and remove the optimization, it works.  (but is too large to leave in production).

    If I set up Debug mode to include the _Debug code, and add optimization, it stops working.

    How do I troubleshoot this problem?

    Wednesday, April 30, 2014 6:55 AM


  • Apparently, Debug mode initialized memory, and Release mode does not.  (Strange behavior)

    I was able to trace this down to an initialization problem.

    The key to solving this was the knowledge that Release mode does not initialize memory.  That gave me a place to start looking.

    • Marked as answer by GBear-BD Saturday, June 7, 2014 3:18 PM
    Saturday, June 7, 2014 3:18 PM